diff --git a/setup.cfg b/setup.cfg index 6110541..a82d8aa 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 diff --git a/src/cdpy/environments.py b/src/cdpy/environments.py index 565d6ac..e93a464 100644 --- a/src/cdpy/environments.py +++ b/src/cdpy/environments.py @@ -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):