Skip to content

Commit 2b284f4

Browse files
committed
Update for the WORKLOAD_IAM_SYNC entitlement and automated user synchronization
Signed-off-by: Webster Mudge <[email protected]>
1 parent cefd4ab commit 2b284f4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/cdpy/environments.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,19 @@ def sync_users(self, environments=None):
216216
self.sdk.throw_error(resp)
217217
return resp
218218

219-
def get_sync_status(self, operation):
219+
def get_sync_status(self, identifier):
220220
return self.sdk.call(
221221
svc='environments', func='sync_status', squelch=[
222222
Squelch(field='error_code', value='NOT_FOUND', default=None,
223-
warning='No User Sync Operation found matching %s' % operation)
223+
warning='No User Sync Operation found matching %s' % identifier)
224224
],
225-
operationId=operation
225+
operationId=identifier
226+
)
227+
228+
def get_automated_sync_environment_status(self, environment):
229+
return self.sdk.call(
230+
svc='environments', func='get_automated_sync_environment_status',
231+
environmentName=environment
226232
)
227233

228234
def get_keytab(self, actor, environment):

0 commit comments

Comments
 (0)