mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-22 22:11:44 -07:00
Use self.args when we parse arguments that way the arguments can be constructed manually
This commit is contained in:
parent
a8e015cc22
commit
4d637e5780
6 changed files with 6 additions and 6 deletions
|
@ -70,7 +70,7 @@ class AdHocCLI(CLI):
|
|||
help="module name to execute (default=%s)" % C.DEFAULT_MODULE_NAME,
|
||||
default=C.DEFAULT_MODULE_NAME)
|
||||
|
||||
self.options, self.args = self.parser.parse_args()
|
||||
self.options, self.args = self.parser.parse_args(self.args[1:])
|
||||
|
||||
if len(self.args) != 1:
|
||||
raise AnsibleOptionsError("Missing target hosts")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue