From ffe8d278df7ac820e3673c4822c00df1d99a73fe Mon Sep 17 00:00:00 2001 From: Philip Joseph Date: Wed, 9 Nov 2016 05:46:28 -0500 Subject: [PATCH] RIFT-14481 No create-time on VLR Original fix by: Ananda Baitharu Signed-off-by: Philip Joseph --- .../plugins/rwnsm/rift/tasklets/rwnsmtasklet/rwnsmtasklet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rwlaunchpad/plugins/rwnsm/rift/tasklets/rwnsmtasklet/rwnsmtasklet.py b/rwlaunchpad/plugins/rwnsm/rift/tasklets/rwnsmtasklet/rwnsmtasklet.py index de08b82e..aec3d097 100755 --- a/rwlaunchpad/plugins/rwnsm/rift/tasklets/rwnsmtasklet/rwnsmtasklet.py +++ b/rwlaunchpad/plugins/rwnsm/rift/tasklets/rwnsmtasklet/rwnsmtasklet.py @@ -511,6 +511,7 @@ class VirtualLinkRecord(object): self._vlr_id = str(uuid.uuid4()) self._state = VlRecordState.INIT self._prev_state = None + self._create_time = int(time.time()) @property def xpath(self): @@ -604,6 +605,7 @@ class VirtualLinkRecord(object): "nsr_id_ref": self._nsr_id, "vld_ref": self.vld_msg.id, "name": self.name, + "create_time": self._create_time, "cloud_account": self.cloud_account_name, "om_datacenter": self.om_datacenter_name, } -- 2.25.1