Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemorency committed Dec 3, 2024
1 parent 7b1a801 commit a88d6c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions plugins/module_utils/_vmware_argument_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions plugins/module_utils/_vmware_pyvmomi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit a88d6c4

Please sign in to comment.