mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 21:30:22 -07:00
VMware: new module : vmware_datastore_maintenancemode (#36436)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
2f72d082c0
commit
3a161fa157
4 changed files with 332 additions and 0 deletions
|
@ -1147,3 +1147,14 @@ class PyVmomi(object):
|
|||
self.module.fail_json(changed=False, msg="ESXi '%s' not found" % esxi_host_name)
|
||||
|
||||
return host_obj_list
|
||||
|
||||
def find_datastore_by_name(self, datastore_name):
|
||||
"""
|
||||
Function to get datastore managed object by name
|
||||
Args:
|
||||
datastore_name: Name of datastore
|
||||
|
||||
Returns: datastore managed object if found else None
|
||||
|
||||
"""
|
||||
return find_datastore_by_name(self.content, datastore_name=datastore_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue