mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
added missing ansibleoptionserror import and moved args check in playbook to after parser exists to allow for creating usage info
This commit is contained in:
@@ -31,7 +31,7 @@ import subprocess
|
||||
|
||||
from ansible import __version__
|
||||
from ansible import constants as C
|
||||
from ansible.errors import AnsibleError
|
||||
from ansible.errors import AnsibleError, AnsibleOptionsError
|
||||
from ansible.utils.unicode import to_bytes
|
||||
|
||||
class SortedOptParser(optparse.OptionParser):
|
||||
|
||||
Reference in New Issue
Block a user