summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAna Krivokapic <akrivoka@redhat.com>2015-04-30 12:26:30 +0200
committerAna Krivokapic <akrivoka@redhat.com>2015-04-30 12:26:30 +0200
commitd7e3be8973ef299bcc07ff2beae985519c64d1d2 (patch)
tree1ece62b24b36be7d46ee727b1808996e52b7aa3f
parent55d6fbc55a30ec138d25190562a00f505466a1e2 (diff)
downloadtuskar-ui-d7e3be8973ef299bcc07ff2beae985519c64d1d2.tar.gz
Use get to get a value from dict
Change-Id: I36de4d822dcb5c7e95c6ebcffd1c4a286c1eadb8
-rw-r--r--tuskar_ui/infrastructure/overview/forms.py2
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: