mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-31 01:16:17 +00:00
[stable-2] added supports_check_mode=True to info/facts modules (#3095)
* added supports_check_mode=True to info/facts modules (#3084)
* 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)
* Also fix modules removed in 3.0.0.
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
ca561aead8
commit
0fda418702
51 changed files with 139 additions and 51 deletions
|
|
@ -163,6 +163,7 @@ def main():
|
|||
name=dict(type='str', required=True, aliases=['volume']),
|
||||
status_filter=dict(type='str', default='self-heal', choices=['self-heal', 'rebalance']),
|
||||
),
|
||||
supports_check_mode=True,
|
||||
)
|
||||
is_old_facts = module._name in ('gluster_heal_facts', 'community.general.gluster_heal_facts')
|
||||
if is_old_facts:
|
||||
|
|
|
|||
|
|
@ -797,7 +797,7 @@ def main():
|
|||
gather_subset=dict(default='minimum', type='list',)
|
||||
))
|
||||
|
||||
module = AnsibleModule(argument_spec, supports_check_mode=False)
|
||||
module = AnsibleModule(argument_spec, supports_check_mode=True)
|
||||
|
||||
array = get_system(module)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue