Skip to content

Commit

Permalink
Closes-Bug: #1593382
Browse files Browse the repository at this point in the history
the name should be tor-agent name for vrouter UVE that corresponds
to tor-agent

Change-Id: Id24d6eb0e07be7ebe59a3aefab1488fd3c3f47f8
(cherry picked from commit b7a1f16)
  • Loading branch information
Raj Reddy committed Jun 16, 2016
1 parent c750811 commit 5e53fec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nodemgr/common/event_manager.py
Expand Up @@ -212,6 +212,8 @@ def send_process_state_db_base(self, group_names, ProcessInfo,
process_info.last_exit_time = pstat.exit_time
process_info.core_file_list = pstat.core_file_list
process_infos.append(process_info)
#in tor-agent case, we should use tor-agent name as uve key
name = pstat.name
if pstat.deleted == False:
delete_status = False

Expand All @@ -220,7 +222,7 @@ def send_process_state_db_base(self, group_names, ProcessInfo,

# send node UVE
node_status = NodeStatus()
node_status.name = socket.gethostname()
node_status.name = name
node_status.deleted = delete_status
node_status.process_info = process_infos
if (self.send_build_info):
Expand Down

0 comments on commit 5e53fec

Please sign in to comment.