File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,10 @@ def set_iam_properties(info: RedshiftProperty) -> RedshiftProperty:
184184 ClientProtocolVersion .list ()
185185 )
186186 )
187+
188+ if info .db_groups and info .force_lowercase :
189+ info .put ("db_groups" , [group .lower () for group in info .db_groups ])
190+
187191 if info .iam is True :
188192 if info .cluster_identifier is None :
189193 raise InterfaceError (
@@ -308,7 +312,10 @@ def set_iam_credentials(info: RedshiftProperty) -> None:
308312 info .put ("db_user" , saml_db_user )
309313
310314 if (len (info .db_groups ) == 0 ) and (len (db_groups ) > 0 ):
311- info .put ("db_groups" , db_groups )
315+ if force_lowercase :
316+ info .db_groups = [group .lower () for group in db_groups ]
317+ else :
318+ info .db_groups = db_groups
312319
313320 IamHelper .set_cluster_credentials (provider , info )
314321
You can’t perform that action at this time.
0 commit comments