mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
minor optimization
This commit is contained in:
@@ -76,8 +76,7 @@ class AdHocCLI(CLI):
|
||||
|
||||
if len(self.args) < 1:
|
||||
raise AnsibleOptionsError("Missing target hosts")
|
||||
|
||||
if len(self.args) > 1:
|
||||
elif len(self.args) > 1:
|
||||
raise AnsibleOptionsError("Extranous options or arguments")
|
||||
|
||||
display.verbosity = self.options.verbosity
|
||||
|
||||
Reference in New Issue
Block a user