diff --git a/packages/aws-rfdk/lib/deadline/scripts/python/configure_identity_registration_settings.py b/packages/aws-rfdk/lib/deadline/scripts/python/configure_identity_registration_settings.py index ee9b2d530..c14010e46 100644 --- a/packages/aws-rfdk/lib/deadline/scripts/python/configure_identity_registration_settings.py +++ b/packages/aws-rfdk/lib/deadline/scripts/python/configure_identity_registration_settings.py @@ -298,7 +298,13 @@ def run_json(self, *args: Iterable[str]): # Prepend the arguments with the json command-line flag transformed_args = ['--json'] + transformed_args - return json.loads(self._call_deadline_command(transformed_args)) + result = json.loads(self._call_deadline_command(transformed_args)) + + if 'ok' in result.keys(): + if result['ok'] == False: + raise ValueError('DeadlineCommandError: \n%s' % (result)) + + return result def dry_run(self, *args: Iterable[str]): transformed_args = self._transform_args(args)