mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 06:10:22 -07:00
slight changes to error handling to align with v1
This commit is contained in:
parent
079fca27a2
commit
b85ce38834
2 changed files with 15 additions and 5 deletions
|
@ -105,7 +105,7 @@ class AdHocCLI(CLI):
|
|||
return 0
|
||||
|
||||
if self.options.module_name in C.MODULE_REQUIRE_ARGS and not self.options.module_args:
|
||||
raise AnsibleError("No argument passed to %s module" % self.options.module_name)
|
||||
raise AnsibleOptionsError("No argument passed to %s module" % self.options.module_name)
|
||||
|
||||
#TODO: implement async support
|
||||
#if self.options.seconds:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue