Fix bug when check agent's status
Change-Id: I06cd2f0207ed60941a767b03d0b837faf22242a4
This commit is contained in:
parent
d3a1121c58
commit
f993ea7082
@ -301,7 +301,7 @@ class PrintAgentsInfo(Lister):
|
||||
r.append(MGMT_AGENTS_INFOS[agent])
|
||||
r.append(NET_AGENTS_INFOS[agent])
|
||||
r.append(STORAGE_AGENTS_INFOS[agent])
|
||||
agent_status = ACTIVE if self.is_agent_active(agent) else DOWN
|
||||
agent_status = ACTIVE if not self.is_agent_active(agent) else DOWN
|
||||
r.append(agent_status)
|
||||
results.append(r)
|
||||
return (('Agent Name', 'Management IP', 'Network IP', 'Storage IP',
|
||||
|
Loading…
x
Reference in New Issue
Block a user