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
This commit is contained in:
joaocpinto 2018-11-29 12:30:59 +00:00 committed by Toshio Kuratomi
parent f017c3fa8d
commit 91d3857c36
2 changed files with 3 additions and 1 deletions

View file

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

View file

@ -259,7 +259,7 @@ def main():
argument_spec=dict(
check=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),
reason=dict(required=False),
state=dict(default='present', choices=['present', 'absent']),