Cast int for expire field to avoid call failure to sensu API (#33239)

(cherry picked from commit bbab4c1b49)

* Cast int for expire field to avoid call failure to sensu API (#33239)

* Add changelog
pull/49461/head
joaocpinto 6 years ago committed by Toshio Kuratomi
parent f017c3fa8d
commit 91d3857c36

@ -0,0 +1,2 @@
bugfixes:
- sensu_silence - Cast int for expire field to avoid call failure to sensu API.

@ -259,7 +259,7 @@ def main():
argument_spec=dict( argument_spec=dict(
check=dict(required=False), check=dict(required=False),
creator=dict(required=False), creator=dict(required=False),
expire=dict(required=False), expire=dict(type='int', required=False),
expire_on_resolve=dict(type='bool', required=False), expire_on_resolve=dict(type='bool', required=False),
reason=dict(required=False), reason=dict(required=False),
state=dict(default='present', choices=['present', 'absent']), state=dict(default='present', choices=['present', 'absent']),

Loading…
Cancel
Save