Fix method for get collector logs
Fixed methods for get collector action logs, count and info by ID. Closes-bug: #1560425 Change-Id: Ied8e1d1a77026f6de80e72f8fffe33c67ae7e421
This commit is contained in:
parent
77a43f0c3b
commit
c65e34faac
|
@ -60,17 +60,18 @@ class CollectorClient(object):
|
|||
@logwrap
|
||||
def get_action_logs_ids(self, master_node_uid):
|
||||
return [actions['id']
|
||||
for actions in self.get_action_logs(master_node_uid)]
|
||||
for actions in self.get_action_logs(master_node_uid)['objs']]
|
||||
|
||||
@logwrap
|
||||
def get_action_logs_count(self, master_node_uid):
|
||||
return len([actions['id']
|
||||
for actions in self.get_action_logs(master_node_uid)])
|
||||
return len(
|
||||
[actions['id'] for actions
|
||||
in self.get_action_logs(master_node_uid)['objs']])
|
||||
|
||||
@logwrap
|
||||
def get_action_logs_additional_info_by_id(self, master_node_uid, id):
|
||||
return [actions['body']['additional_info']
|
||||
for actions in self.get_action_logs(master_node_uid)
|
||||
for actions in self.get_action_logs(master_node_uid)['objs']
|
||||
if actions['id'] == id]
|
||||
|
||||
@logwrap
|
||||
|
|
Loading…
Reference in New Issue