Bugfix: support vitrage alarm list for alarm with no resource
Change-Id: I5d0693db2c5bad67bf72606aec90425ea05cd9f1 Story: 2003065 Task: 23107
This commit is contained in:
parent
ece8a6d94f
commit
33720fc14c
@ -27,7 +27,7 @@ def list2cols(cols, objs):
|
|||||||
def list2cols_with_rename(names_and_keys, objs):
|
def list2cols_with_rename(names_and_keys, objs):
|
||||||
cols = [i[0] for i in names_and_keys]
|
cols = [i[0] for i in names_and_keys]
|
||||||
keys = [i[1] for i in names_and_keys]
|
keys = [i[1] for i in names_and_keys]
|
||||||
return cols, [tuple([o[k] for k in keys])
|
return cols, [tuple([o.get(k, '') for k in keys])
|
||||||
for o in objs]
|
for o in objs]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user