Skip to content

Commit 87a71e4

Browse files
committed
Update for the WORKLOAD_IAM_SYNC entitlement and automated user synchronization
Signed-off-by: Webster Mudge <wmudge@cloudera.com>
1 parent 3cb9bad commit 87a71e4

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ package_dir =
3030
# DON'T CHANGE THE FOLLOWING LINE! IT WILL BE UPDATED BY PYSCAFFOLD!
3131
setup_requires = pyscaffold>=3.2a0,<3.3a0
3232
# Add here dependencies of your project (semicolon/line-separated), e.g.
33-
install_requires = cdpcli-beta>=0.9.30
33+
install_requires = cdpcli-beta>=0.9.57
3434
# The usage of test_requires is discouraged, see `Dependency Management` docs
3535
# tests_require = pytest; pytest-cov
3636
# Require a specific Python version, e.g. Python 2.7 or >= 3.4

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)