mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Removed excs reference from new methods in salt.modules.vsphere
This commit is contained in:
parent
f484bd52fd
commit
e1bfe24891
@ -4939,8 +4939,8 @@ def assign_default_storage_policy_to_datastore(policy, datastore,
|
|||||||
ds_refs = salt.utils.vmware.get_datastores(service_instance, target_ref,
|
ds_refs = salt.utils.vmware.get_datastores(service_instance, target_ref,
|
||||||
datastore_names=[datastore])
|
datastore_names=[datastore])
|
||||||
if not ds_refs:
|
if not ds_refs:
|
||||||
raise excs.VMwareObjectRetrievalError('Datastore \'{0}\' was not '
|
raise VMwareObjectRetrievalError('Datastore \'{0}\' was not '
|
||||||
'found'.format(datastore))
|
'found'.format(datastore))
|
||||||
ds_ref = ds_refs[0]
|
ds_ref = ds_refs[0]
|
||||||
salt.utils.pbm.assign_default_storage_policy_to_datastore(
|
salt.utils.pbm.assign_default_storage_policy_to_datastore(
|
||||||
profile_manager, policy_ref, ds_ref)
|
profile_manager, policy_ref, ds_ref)
|
||||||
|
Loading…
Reference in New Issue
Block a user