fixed name to unit

pull/22847/head
Brian Coca 8 years ago
parent b82aa41e31
commit 2022fc162a

@ -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

Loading…
Cancel
Save