diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2017-03-21 14:28:23 -0400 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2017-03-21 14:28:23 -0400 |
commit | 2022fc162a4349d0575ccdaa042d67ea9dbafac4 (patch) | |
tree | 1460bd3be94c9d3e72b8c5ca4effb97eab959de7 /lib/ansible/modules/system/systemd.py | |
parent | b82aa41e31030d7b6dea1fb83af1fdac63659b40 (diff) | |
download | ansible-2022fc162a4349d0575ccdaa042d67ea9dbafac4.tar.gz |
fixed name to unit
Diffstat (limited to 'lib/ansible/modules/system/systemd.py')
-rw-r--r-- | lib/ansible/modules/system/systemd.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |