Update for changes to alarm-patch command

Change-Id: I0293b05a7027ed428771f063e6f01969384ee2f7
This commit is contained in:
Ryan Brandt 2015-05-29 13:30:41 -06:00
parent b21c72e578
commit 3214f14e70
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ def get_alarm_state(alarm_id):
def change_alarm_state(alarm_id, new_state):
print('Changing Alarm state to %s' % new_state)
result_json = run_mon_cli(['alarm-patch', alarm_id, new_state])
result_json = run_mon_cli(['alarm-patch', alarm_id, "--state", new_state])
if result_json['state'] != new_state:
print('Alarm patch failed, expected state of %s but was %s' %
(result_json['state'], new_state), file=sys.stderr)