summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2018-09-19 09:32:25 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-19 09:32:25 +0000
commitcc85b26ca7084353cdb6a5f91f8df0c92e0d5d32 (patch)
treeda08bdec00a9b458fe6853a30646b576b1e3afc7
parent22b899a176015f54b43baf0c8b7d6e582fbd0e86 (diff)
parent80a7ced1b63ce3d7e9cbc31c5ec173cb44c0ba5b (diff)
Merge "Fix eventId issue"
-rw-r--r--windriver/titanium_cloud/vesagent/event_domain/fault_vm.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/windriver/titanium_cloud/vesagent/event_domain/fault_vm.py b/windriver/titanium_cloud/vesagent/event_domain/fault_vm.py
index 48ff05fc..9b6d0224 100644
--- a/windriver/titanium_cloud/vesagent/event_domain/fault_vm.py
+++ b/windriver/titanium_cloud/vesagent/event_domain/fault_vm.py
@@ -252,7 +252,8 @@ def data2event_fault_vm(vimid, oneBacklog, last_event, vm_data):
startEpochMicrosec = last_event['event']['commonEventHeader']['startEpochMicrosec']
lastEpochMicrosec = get_epoch_now_usecond()
- eventId = last_event['event']['commonEventHeader']['eventId']
+ # holmes requires that eventId must be unique for each event!
+ eventId = str(uuid.uuid4())
pass