Merge "Fix cluster_id field when listing events"

This commit is contained in:
Jenkins
2016-11-22 02:58:11 +00:00
committed by Gerrit Code Review

View File

@@ -101,6 +101,7 @@ class ListEvent(command.Lister):
formatters['obj_id'] = lambda x: x[:8] if x else ''
if 'project_id' in columns:
formatters['project_id'] = lambda x: x[:8]
formatters['cluster_id'] = lambda x: x[:8] if x else ''
events = senlin_client.events(**queries)
return (columns,