From 2022fc162a4349d0575ccdaa042d67ea9dbafac4 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 21 Mar 2017 14:28:23 -0400 Subject: [PATCH] fixed name to unit --- lib/ansible/modules/system/systemd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/systemd.py b/lib/ansible/modules/system/systemd.py index 1e46a59c90..724290a722 100644 --- a/lib/ansible/modules/system/systemd.py +++ b/lib/ansible/modules/system/systemd.py @@ -291,7 +291,7 @@ def main(): } for requires in ('state', 'enabled', 'masked'): - if requires is not None and name is None: + if requires is not None and unit is None: module.fail_json(msg="name is also required when specifying %s" % requires) # Run daemon-reload first, if requested