|
|
|
@ -9,17 +9,6 @@ import traceback
|
|
|
|
import ansible.constants as C
|
|
|
|
import ansible.constants as C
|
|
|
|
from ansible.module_utils._text import to_text
|
|
|
|
from ansible.module_utils._text import to_text
|
|
|
|
|
|
|
|
|
|
|
|
#__requires__ = ['ansible']
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
import pkg_resources
|
|
|
|
|
|
|
|
except Exception:
|
|
|
|
|
|
|
|
# Use pkg_resources to find the correct versions of libraries and set
|
|
|
|
|
|
|
|
# sys.path appropriately when there are multiversion installs. But we
|
|
|
|
|
|
|
|
# have code that better expresses the errors in the places where the code
|
|
|
|
|
|
|
|
# is actually used (the deps are optional for many code paths) so we don't
|
|
|
|
|
|
|
|
# want to fail here.
|
|
|
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
target = sys.argv.pop(1)
|
|
|
|
target = sys.argv.pop(1)
|
|
|
|
myclass = "%sCLI" % target.capitalize()
|
|
|
|
myclass = "%sCLI" % target.capitalize()
|
|
|
|
|
|
|
|
|
|
|
|
|