diff --git a/plugins/module_utils/_vmware_argument_spec.py b/plugins/module_utils/_vmware_argument_spec.py index f3ec56ab..9aef7fe0 100644 --- a/plugins/module_utils/_vmware_argument_spec.py +++ b/plugins/module_utils/_vmware_argument_spec.py @@ -3,12 +3,12 @@ def base_arg_spec(): return dict( - hostname = dict( + hostname=dict( type='str', required=False, fallback=(env_fallback, ['VMWARE_HOST']), ), - username = dict( + username=dict( type='str', aliases=['user', 'admin'], required=False, @@ -21,31 +21,31 @@ def base_arg_spec(): no_log=True, fallback=(env_fallback, ['VMWARE_PASSWORD']) ), - port = dict( + port=dict( type='int', default=443, required=False, fallback=(env_fallback, ['VMWARE_PORT']) ), - validate_certs = dict( + validate_certs=dict( type='bool', required=False, default=True, fallback=(env_fallback, ['VMWARE_VALIDATE_CERTS']) ), - proxy_protocol = dict( + proxy_protocol=dict( type='str', default='https', choices=['https', 'http'], aliases=['protocol'] ), - proxy_host = dict( + proxy_host=dict( type='str', required=False, default=None, fallback=(env_fallback, ['VMWARE_PROXY_HOST']) ), - proxy_port = dict( + proxy_port=dict( type='int', required=False, default=None, diff --git a/plugins/module_utils/_vmware_pyvmomi.py b/plugins/module_utils/_vmware_pyvmomi.py index c16fc0fa..9d1bc843 100644 --- a/plugins/module_utils/_vmware_pyvmomi.py +++ b/plugins/module_utils/_vmware_pyvmomi.py @@ -148,11 +148,11 @@ def __init__(self, module): """ Constructor """ - if not REQUESTS_IMP_ERR: + if REQUESTS_IMP_ERR: module.fail_json(msg=missing_required_lib('requests'), exception=REQUESTS_IMP_ERR) - if not PYVMOMI_IMP_ERR: + if PYVMOMI_IMP_ERR: module.fail_json(msg=missing_required_lib('PyVmomi'), exception=PYVMOMI_IMP_ERR)