Skip to content

Commit

Permalink
{Core} use caseless matching for provisioning_state (#12154)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzhou-msft authored Feb 13, 2020
1 parent 2415e51 commit 86219a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/azure-cli-core/azure/cli/core/commands/arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,10 +681,10 @@ def handler(args):
return None
provisioning_state = get_provisioning_state(instance)
# until we have any needs to wait for 'Failed', let us bail out on this
if provisioning_state == 'Failed':
if provisioning_state.casefold() == 'failed':
progress_indicator.stop()
raise CLIError('The operation failed')
if ((wait_for_created or wait_for_updated) and provisioning_state == 'Succeeded') or \
if ((wait_for_created or wait_for_updated) and provisioning_state.casefold() == 'succeeded') or \
custom_condition and bool(verify_property(instance, custom_condition)):
progress_indicator.end()
return None
Expand Down

0 comments on commit 86219a4

Please sign in to comment.