Use get to get a value from dict
Change-Id: I36de4d822dcb5c7e95c6ebcffd1c4a286c1eadb8
This commit is contained in:
parent
55d6fbc55a
commit
d7e3be8973
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user