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:
parent
8328eaee91
commit
216d8b5254
6 changed files with 9 additions and 3 deletions
|
@ -215,6 +215,7 @@ def main():
|
|||
required_one_of=[
|
||||
['cluster_name', 'datacenter'],
|
||||
],
|
||||
supports_check_mode=True,
|
||||
)
|
||||
pyv = VmwreClusterFactsManager(module)
|
||||
pyv.gather_cluster_facts()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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']:
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -171,6 +171,7 @@ def main():
|
|||
required_one_of=[
|
||||
['cluster_name', 'esxi_hostname'],
|
||||
],
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
||||
scsi_tgt_manager = ScsiTargetFactsManager(module)
|
||||
|
|
Loading…
Reference in a new issue