Fix logging in services last operation
Change-Id: I774c517e701e4fe7a08377273e7ea173a6cd20ea
This commit is contained in:
parent
7f5fa4e4f5
commit
c03e0efede
|
@ -160,6 +160,17 @@ def services_list(request, environment_id):
|
|||
environment = get_environment(environment_id, session_id)
|
||||
|
||||
for service, instances in environment.services.iteritems():
|
||||
if instances:
|
||||
reports = muranoclient(request).sessions.reports(
|
||||
environment_id,
|
||||
session_id,
|
||||
instances[0]['id'])
|
||||
if reports:
|
||||
last_operation = str(reports[-1].text)
|
||||
else:
|
||||
last_operation = ''
|
||||
instances[0]['operation'] = last_operation
|
||||
|
||||
services += instances
|
||||
|
||||
log.debug('Service::List')
|
||||
|
|
Loading…
Reference in New Issue