tolerate environment not being set
default will be the same as before, None/null
This commit is contained in:
parent
a7e399955f
commit
814527fca9
1 changed files with 3 additions and 3 deletions
|
@ -1609,15 +1609,15 @@ def main():
|
|||
argument_spec=dict(
|
||||
vcenter_hostname=dict(
|
||||
type='str',
|
||||
default=os.environ['VMWARE_HOST']
|
||||
default=os.environ.get('VMWARE_HOST')
|
||||
),
|
||||
username=dict(
|
||||
type='str',
|
||||
default=os.environ['VMWARE_USER']
|
||||
default=os.environ.get('VMWARE_USER')
|
||||
),
|
||||
password=dict(
|
||||
type='str', no_log=True,
|
||||
default=os.environ['VMWARE_PASSWORD']
|
||||
default=os.environ.get('VMWARE_PASSWORD')
|
||||
),
|
||||
state=dict(
|
||||
required=False,
|
||||
|
|
Loading…
Reference in a new issue