From d03914ed6319f3a628cf81d32ee82fadf15dc03d Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 26 May 2016 13:20:49 -0400 Subject: [PATCH] added state in results for backwards compat --- system/systemd.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/systemd.py b/system/systemd.py index 7c7fd6a4d98..4610338e7a9 100644 --- a/system/systemd.py +++ b/system/systemd.py @@ -348,6 +348,8 @@ def main(): # this should not happen? module.fail_json(msg="Service is in unknown state", status=result['status']) + result['state'] = f module.params['state'] + module.exit_json(**result) if __name__ == '__main__':