Skip to content

Commit

Permalink
Update for the WORKLOAD_IAM_SYNC entitlement and automated user synch…
Browse files Browse the repository at this point in the history
…ronization

Signed-off-by: Webster Mudge <[email protected]>
  • Loading branch information
wmudge committed Sep 12, 2024
1 parent cefd4ab commit 2b284f4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/cdpy/environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,19 @@ def sync_users(self, environments=None):
self.sdk.throw_error(resp)
return resp

def get_sync_status(self, operation):
def get_sync_status(self, identifier):
return self.sdk.call(
svc='environments', func='sync_status', squelch=[
Squelch(field='error_code', value='NOT_FOUND', default=None,
warning='No User Sync Operation found matching %s' % operation)
warning='No User Sync Operation found matching %s' % identifier)
],
operationId=operation
operationId=identifier
)

def get_automated_sync_environment_status(self, environment):
return self.sdk.call(
svc='environments', func='get_automated_sync_environment_status',
environmentName=environment
)

def get_keytab(self, actor, environment):
Expand Down

0 comments on commit 2b284f4

Please sign in to comment.