mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 07:24:00 -07:00
[PR #10769/e6502a8e backport][stable-11] xenserver: remove required=false from arg spec (#10775)
xenserver: remove required=false from arg spec (#10769)
* xenserver: remove required=false from arg spec
* add changelog frag
(cherry picked from commit e6502a8e51
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
cdadfa979e
commit
4c85efd807
2 changed files with 2 additions and 4 deletions
2
changelogs/fragments/10769-xenserver-rf.yml
Normal file
2
changelogs/fragments/10769-xenserver-rf.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- xenserver module utils - remove redundant constructs from argument specs (https://github.com/ansible-collections/community.general/pull/10769).
|
|
@ -28,22 +28,18 @@ def xenserver_common_argument_spec():
|
||||||
return dict(
|
return dict(
|
||||||
hostname=dict(type='str',
|
hostname=dict(type='str',
|
||||||
aliases=['host', 'pool'],
|
aliases=['host', 'pool'],
|
||||||
required=False,
|
|
||||||
default='localhost',
|
default='localhost',
|
||||||
fallback=(env_fallback, ['XENSERVER_HOST']),
|
fallback=(env_fallback, ['XENSERVER_HOST']),
|
||||||
),
|
),
|
||||||
username=dict(type='str',
|
username=dict(type='str',
|
||||||
aliases=['user', 'admin'],
|
aliases=['user', 'admin'],
|
||||||
required=False,
|
|
||||||
default='root',
|
default='root',
|
||||||
fallback=(env_fallback, ['XENSERVER_USER'])),
|
fallback=(env_fallback, ['XENSERVER_USER'])),
|
||||||
password=dict(type='str',
|
password=dict(type='str',
|
||||||
aliases=['pass', 'pwd'],
|
aliases=['pass', 'pwd'],
|
||||||
required=False,
|
|
||||||
no_log=True,
|
no_log=True,
|
||||||
fallback=(env_fallback, ['XENSERVER_PASSWORD'])),
|
fallback=(env_fallback, ['XENSERVER_PASSWORD'])),
|
||||||
validate_certs=dict(type='bool',
|
validate_certs=dict(type='bool',
|
||||||
required=False,
|
|
||||||
default=True,
|
default=True,
|
||||||
fallback=(env_fallback, ['XENSERVER_VALIDATE_CERTS'])),
|
fallback=(env_fallback, ['XENSERVER_VALIDATE_CERTS'])),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue