@depends(HAS_PYVMOMI)
def list_datastores(host, username, password, protocol=None, port=None):
 service_instance = salt.utils.vmware.get_service_instance(host=host, username=username, password=password, protocol=protocol, port=port)
 return salt.utils.vmware.list_datastores(service_instance)

@ depends ( HAS_PYVMOMI ) def list_datastores ( host , username , password , protocol = None , port = None ) : service_instance = salt . utils . vmware . get_service_instance ( host = host , username = username , password = password , protocol = protocol , port = port ) return salt . utils . vmware . list_datastores ( service_instance )
returns a list of data stores on opennebula .