minor optimization
This commit is contained in:
parent
2482c687b7
commit
85f4c95843
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue