VMware: support check mode in all facts modules (#55689)

* vmware_cluster_facts
* vmware_guest_facts
* vmware_guest_snapshot_facts
* vmware_host_capability_facts
* vmware_host_package_facts
* vmware_target_canonical_facts

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2019-04-30 16:39:21 +05:30 committed by GitHub
parent 8328eaee91
commit 216d8b5254
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 3 deletions

View file

@ -215,6 +215,7 @@ def main():
required_one_of=[
['cluster_name', 'datacenter'],
],
supports_check_mode=True,
)
pyv = VmwreClusterFactsManager(module)
pyv.gather_cluster_facts()

View file

@ -229,7 +229,8 @@ def main():
properties=dict(type='list')
)
module = AnsibleModule(argument_spec=argument_spec,
required_one_of=[['name', 'uuid']])
required_one_of=[['name', 'uuid']],
supports_check_mode=True)
if module.params.get('folder'):
# FindByInventoryPath() does not require an absolute path

View file

@ -138,6 +138,7 @@ def main():
module = AnsibleModule(argument_spec=argument_spec,
required_together=[['name', 'folder']],
required_one_of=[['name', 'uuid']],
supports_check_mode=True,
)
if module.params['folder']:

View file

@ -207,7 +207,8 @@ def main():
argument_spec=argument_spec,
required_one_of=[
['cluster_name', 'esxi_hostname'],
]
],
supports_check_mode=True,
)
host_capability_manager = CapabilityFactsManager(module)

View file

@ -114,7 +114,8 @@ def main():
argument_spec=argument_spec,
required_one_of=[
['cluster_name', 'esxi_hostname'],
]
],
supports_check_mode=True,
)
vmware_host_package_config = VmwarePackageManager(module)

View file

@ -171,6 +171,7 @@ def main():
required_one_of=[
['cluster_name', 'esxi_hostname'],
],
supports_check_mode=True,
)
scsi_tgt_manager = ScsiTargetFactsManager(module)