1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fixed name to unit

This commit is contained in:
Brian Coca 2017-03-21 14:28:23 -04:00
parent b82aa41e31
commit 2022fc162a

View file

@ -291,7 +291,7 @@ def main():
} }
for requires in ('state', 'enabled', 'masked'): 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) module.fail_json(msg="name is also required when specifying %s" % requires)
# Run daemon-reload first, if requested # Run daemon-reload first, if requested