[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:
patchback[bot] 2025-08-31 12:11:02 +02:00 committed by GitHub
commit 4c85efd807
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View 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).

View file

@ -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'])),
) )