Update the field name for actions_enabled in Alarms. It changed in the API
This commit is contained in:
parent
66b65904d9
commit
76f5acfab2
@ -17,11 +17,11 @@ def get(mon_client, alarm_id):
|
||||
|
||||
|
||||
def disable(mon_client, alarm_id):
|
||||
patch(mon_client, alarm_id, {'enabled': False})
|
||||
patch(mon_client, alarm_id, {'actions_enabled': False})
|
||||
|
||||
|
||||
def enable(mon_client, alarm_id):
|
||||
patch(mon_client, alarm_id, {'enabled': True})
|
||||
patch(mon_client, alarm_id, {'actions_enabled': True})
|
||||
|
||||
|
||||
def set_state(mon_client, alarm_id, state):
|
||||
|
Loading…
x
Reference in New Issue
Block a user