diff --git a/tests/cli_wrapper.py b/tests/cli_wrapper.py index a5772ba..69f12e8 100644 --- a/tests/cli_wrapper.py +++ b/tests/cli_wrapper.py @@ -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)