From 7420f3cbca4805d37db3ed3fffb952381acdac2e Mon Sep 17 00:00:00 2001 From: Josh Usiskin <56369778+jusiskin@users.noreply.github.com> Date: Mon, 18 Oct 2021 13:17:05 -0500 Subject: [PATCH] fix(deadline): fix type assumption in configure_identity_registration_settings.py error handling (#612) --- .../scripts/python/configure_identity_registration_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c14010e46..567340241 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 @@ -300,7 +300,7 @@ def run_json(self, *args: Iterable[str]): result = json.loads(self._call_deadline_command(transformed_args)) - if 'ok' in result.keys(): + if isinstance(result, dict) and 'ok' in result.keys(): if result['ok'] == False: raise ValueError('DeadlineCommandError: \n%s' % (result))