diff options
author | Ana Krivokapic <akrivoka@redhat.com> | 2015-04-30 12:26:30 +0200 |
---|---|---|
committer | Ana Krivokapic <akrivoka@redhat.com> | 2015-04-30 12:26:30 +0200 |
commit | d7e3be8973ef299bcc07ff2beae985519c64d1d2 (patch) | |
tree | 1ece62b24b36be7d46ee727b1808996e52b7aa3f | |
parent | 55d6fbc55a30ec138d25190562a00f505466a1e2 (diff) | |
download | tuskar-ui-d7e3be8973ef299bcc07ff2beae985519c64d1d2.tar.gz |
Use get to get a value from dict
Change-Id: I36de4d822dcb5c7e95c6ebcffd1c4a286c1eadb8
-rw-r--r-- | tuskar_ui/infrastructure/overview/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tuskar_ui/infrastructure/overview/forms.py b/tuskar_ui/infrastructure/overview/forms.py index 2b5f9006..965814ad 100644 --- a/tuskar_ui/infrastructure/overview/forms.py +++ b/tuskar_ui/infrastructure/overview/forms.py @@ -299,7 +299,7 @@ class DeployOvercloud(horizon.forms.SelfHandlingForm): # Validate plan and create stack for message in validate_plan(request, plan): - if message['is_critical']: + if message.get('is_critical'): horizon.messages.success(request, message.text) return False try: |