Skip to content

Commit

Permalink
fixed saved_entity_attributes to be list rather tan dict
Browse files Browse the repository at this point in the history
  • Loading branch information
nahumtimerman committed Jun 4, 2018
1 parent 35d69e6 commit 4680478
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from contextlib import contextmanager
from threading import Lock

from cloudshell.cp.core.models import Artifact, DataElement, SaveAppResult
from cloudshell.cp.core.models import Artifact, SaveAppResult, Attribute

from cloudshell.cp.vcenter.models.DeployFromTemplateDetails import DeployFromTemplateDetails
from cloudshell.cp.vcenter.models.vCenterCloneVMFromVMResourceModel import vCenterCloneVMFromVMResourceModel
Expand Down Expand Up @@ -52,8 +52,8 @@ def save(self, save_action, cancellation_context):
save_artifact = Artifact(artifactId=result.vmUuid, artifactName=result.vmName)

vcenter_vm_path = '/'.join([data_holder.template_resource_model.vm_location, result.vmName])
saved_entity_attributes = {'vCenter VM': vcenter_vm_path,
'vCenter VM Snapshot': self.SNAPSHOT_NAME}
saved_entity_attributes = [Attribute('vCenter VM', vcenter_vm_path),
Attribute('vCenter VM Snapshot', self.SNAPSHOT_NAME)]

return SaveAppResult(save_action.actionId,
True,
Expand Down

0 comments on commit 4680478

Please sign in to comment.