added state in results for backwards compat
This commit is contained in:
parent
0c5eac4243
commit
472d5c11ef
1 changed files with 2 additions and 0 deletions
|
@ -348,6 +348,8 @@ def main():
|
||||||
# this should not happen?
|
# this should not happen?
|
||||||
module.fail_json(msg="Service is in unknown state", status=result['status'])
|
module.fail_json(msg="Service is in unknown state", status=result['status'])
|
||||||
|
|
||||||
|
result['state'] = f module.params['state']
|
||||||
|
|
||||||
module.exit_json(**result)
|
module.exit_json(**result)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue