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 Mar 21, 2022
1 parent 3cb9bad commit 87a71e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ package_dir =
# DON'T CHANGE THE FOLLOWING LINE! IT WILL BE UPDATED BY PYSCAFFOLD!
setup_requires = pyscaffold>=3.2a0,<3.3a0
# Add here dependencies of your project (semicolon/line-separated), e.g.
install_requires = cdpcli-beta>=0.9.30
install_requires = cdpcli-beta>=0.9.57
# The usage of test_requires is discouraged, see `Dependency Management` docs
# tests_require = pytest; pytest-cov
# Require a specific Python version, e.g. Python 2.7 or >= 3.4
Expand Down
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 87a71e4

Please sign in to comment.