1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-06 20:17:15 +00:00

added supports_check_mode=True to info/facts modules (#3084) (#3094)

* 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:
patchback[bot] 2021-07-27 17:23:10 +00:00 committed by GitHub
parent ad8cd8efb3
commit 35de2377f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 85 additions and 25 deletions

View file

@ -110,7 +110,8 @@ def main():
module = UTMModule(
argument_spec=dict(
name=dict(type='str', required=True)
)
),
supports_check_mode=True,
)
try:
UTM(module, endpoint, key_to_check_for_changes, info_only=True).execute()

View file

@ -88,7 +88,8 @@ def main():
module = UTMModule(
argument_spec=dict(
name=dict(type='str', required=True)
)
),
supports_check_mode=True,
)
try:
# This is needed because the bool value only accepts int values in the backend

View file

@ -84,7 +84,8 @@ def main():
module = UTMModule(
argument_spec=dict(
name=dict(type='str', required=True)
)
),
supports_check_mode=True,
)
try:
UTM(module, endpoint, key_to_check_for_changes, info_only=True).execute()

View file

@ -128,8 +128,9 @@ def main():
key_to_check_for_changes = []
module = UTMModule(
argument_spec=dict(
name=dict(type='str', required=True)
)
name=dict(type='str', required=True),
),
supports_check_mode=True,
)
try:
UTM(module, endpoint, key_to_check_for_changes, info_only=True).execute()

View file

@ -109,8 +109,9 @@ def main():
key_to_check_for_changes = []
module = UTMModule(
argument_spec=dict(
name=dict(type='str', required=True)
)
name=dict(type='str', required=True),
),
supports_check_mode=True,
)
try:
UTM(module, endpoint, key_to_check_for_changes, info_only=True).execute()