Skip to content

Commit 22a136d

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

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
@@ -214,13 +214,19 @@ def sync_users(self, environments=None):
214214
self.sdk.throw_error(resp)
215215
return resp
216216

217-
def get_sync_status(self, operation):
217+
def get_sync_status(self, identifier):
218218
return self.sdk.call(
219219
svc='environments', func='sync_status', squelch=[
220220
Squelch(field='error_code', value='NOT_FOUND', default=None,
221-
warning='No User Sync Operation found matching %s' % operation)
221+
warning='No User Sync Operation found matching %s' % identifier)
222222
],
223-
operationId=operation
223+
operationId=identifier
224+
)
225+
226+
def get_automated_sync_environment_status(self, environment):
227+
return self.sdk.call(
228+
svc='environments', func='get_automated_sync_environment_status',
229+
environmentName=environment
224230
)
225231

226232
def get_keytab(self, actor, environment):

0 commit comments

Comments
 (0)