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:
parent
b82aa41e31
commit
2022fc162a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue