Fix cluster_id field when listing events
The column "cluster_id" should be short by default. Change-Id: If8f72ab25f2c82d1943c9f2cc538689a6180c6c4 Closes-Bug: #1642825
This commit is contained in:
parent
3d59f252fb
commit
fb06df0180
@ -101,6 +101,7 @@ class ListEvent(command.Lister):
|
|||||||
formatters['obj_id'] = lambda x: x[:8] if x else ''
|
formatters['obj_id'] = lambda x: x[:8] if x else ''
|
||||||
if 'project_id' in columns:
|
if 'project_id' in columns:
|
||||||
formatters['project_id'] = lambda x: x[:8]
|
formatters['project_id'] = lambda x: x[:8]
|
||||||
|
formatters['cluster_id'] = lambda x: x[:8] if x else ''
|
||||||
|
|
||||||
events = senlin_client.events(**queries)
|
events = senlin_client.events(**queries)
|
||||||
return (columns,
|
return (columns,
|
||||||
|
Loading…
Reference in New Issue
Block a user