summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2018-06-05 04:53:46 +0000
committerBin Yang <bin.yang@windriver.com>2018-06-05 04:53:46 +0000
commit4ddf8982a25d8ede883736c41281cd6fdf2adf98 (patch)
tree49a33276381133b397ba38ac01a8d2b73550f5dd
parent38f78f4fdf3874ca780f12ab1816650476013d3a (diff)
Fix eventId to conform VES specs
Change-Id: Ia1eae86bd56e99cc825e2bbc03dab33921d625f0 Issue-ID: MULTICLOUD-238 Signed-off-by: Bin Yang <bin.yang@windriver.com>
-rw-r--r--windriver/titanium_cloud/vesagent/event_domain/fault_vm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/windriver/titanium_cloud/vesagent/event_domain/fault_vm.py b/windriver/titanium_cloud/vesagent/event_domain/fault_vm.py
index 5de843ce..b7a0646d 100644
--- a/windriver/titanium_cloud/vesagent/event_domain/fault_vm.py
+++ b/windriver/titanium_cloud/vesagent/event_domain/fault_vm.py
@@ -248,11 +248,11 @@ def data2event_fault_vm(vimid, oneBacklog, last_event, vm_data):
eventType = ''
reportingEntityId = vimid
reportingEntityName = vimid
- sequence = 0
+ sequence = 1 #last_event['event']['commonEventHeader']['sequence'] + 1
startEpochMicrosec = last_event['event']['commonEventHeader']['startEpochMicrosec']
lastEpochMicrosec = get_epoch_now_usecond()
- eventId = str(uuid.uuid4()) #last_event['event']['commonEventHeader']['eventId']
+ eventId = last_event['event']['commonEventHeader']['eventId']
pass