mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-04 23:39:09 -07:00
* added supports_check_mode=True to info/facts modules
* added changelog fragment
* rolled back vertica_info
* rolled back utm_proxy_*_info
* updated changelog fragment with latest adjustments
* Update changelogs/fragments/3084-info-checkmode.yaml
Co-authored-by: Felix Fontein <felix@fontein.de>
* added check mode to xenserver_facts + oneview_*_info
* added check mode to utm_proxy_*_info
* updated changelog
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 7da2c16b4a
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
ad8cd8efb3
commit
35de2377f2
25 changed files with 85 additions and 25 deletions
|
@ -386,7 +386,10 @@ def main():
|
|||
filters=dict(type='dict')
|
||||
)
|
||||
)
|
||||
module = AnsibleModule(argument_spec=argument_spec)
|
||||
module = AnsibleModule(
|
||||
argument_spec=argument_spec,
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
if HAS_FOOTMARK is False:
|
||||
module.fail_json(msg=missing_required_lib('footmark'), exception=FOOTMARK_IMP_ERR)
|
||||
|
|
|
@ -149,7 +149,7 @@ def main():
|
|||
api_key=dict(required=True, type='str', no_log=True),
|
||||
name=dict(required=True, type='str')
|
||||
),
|
||||
supports_check_mode=False
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
# populate the dict with the user-provided vars.
|
||||
|
|
|
@ -274,7 +274,7 @@ def main():
|
|||
api_key=dict(required=True, type='str', no_log=True),
|
||||
name=dict(required=True, type='str')
|
||||
),
|
||||
supports_check_mode=False
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
# populate the dict with the user-provided vars.
|
||||
|
|
|
@ -160,7 +160,9 @@ def get_srs(session):
|
|||
|
||||
|
||||
def main():
|
||||
module = AnsibleModule({})
|
||||
module = AnsibleModule(
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
if not HAVE_XENAPI:
|
||||
module.fail_json(changed=False, msg="python xen api required for this module")
|
||||
|
|
|
@ -124,6 +124,7 @@ def main():
|
|||
required_together=rax_required_together(),
|
||||
mutually_exclusive=[['address', 'id', 'name']],
|
||||
required_one_of=[['address', 'id', 'name']],
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
if not HAS_PYRAX:
|
||||
|
|
|
@ -97,7 +97,7 @@ def main():
|
|||
argument_spec=dict(
|
||||
filters=dict(default=None),
|
||||
),
|
||||
supports_check_mode=False,
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
image_facts = ImageFacts(module)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue