diff options
author | Xiaohua Zhang <xiaohua.zhang@windriver.com> | 2018-09-19 10:31:31 +0000 |
---|---|---|
committer | Xiaohua Zhang <xiaohua.zhang@windriver.com> | 2018-09-19 10:31:50 +0000 |
commit | 80a7ced1b63ce3d7e9cbc31c5ec173cb44c0ba5b (patch) | |
tree | 162ea4b4caf93c7311a435adf6e2feb3f62b0762 /windriver/titanium_cloud/vesagent/event_domain | |
parent | 4663ed0cd55cc78a0ff3e336a10f7e042a50aa9c (diff) |
Fix eventId issue
eventId should be unique for each report event
Issue-ID: MULTICLOUD-361
Change-Id: Iee11b64e9bce88003858218abc53d1f1f9d8a86d
Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
Diffstat (limited to 'windriver/titanium_cloud/vesagent/event_domain')
-rw-r--r-- | windriver/titanium_cloud/vesagent/event_domain/fault_vm.py | 3 |
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 |