Removed excs reference from new methods in salt.modules.vsphere

This commit is contained in:
Alexandru Bleotu 2017-09-22 08:59:33 -04:00
parent f484bd52fd
commit e1bfe24891

View File

@ -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)