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:
parent
f017c3fa8d
commit
91d3857c36
2 changed files with 3 additions and 1 deletions
2
changelogs/fragments/33239-sensu-expire-cast-int.yaml
Normal file
2
changelogs/fragments/33239-sensu-expire-cast-int.yaml
Normal file
|
@ -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(
|
||||
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']),
|
||||
|
|
Loading…
Reference in a new issue