added state in results for backwards compat

This commit is contained in:
Brian Coca 2016-05-26 13:20:49 -04:00 committed by Matt Clay
parent 0c5eac4243
commit 472d5c11ef

View file

@ -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__':