Skip to content

Commit 8edeb2f

Browse files
author
NGNOUBA ARNOLD
committed
fix: show all ActionInfo entries in HTML logs
- ActionInfo links in HTML logs are currently missing because: - getLinks (catalog.py:1114) assigns the same Name ('ActionInfo') to each ActionInfo link - Subsequent links overwrite previous ones, sharing the same uriName - validateURITree returns only the last link - Fixed by: - Enumerating the generator (catalog.py:1111) to get a unique index (num) - Adding the index to the 'ActionInfo' string to form each unique link name Signed-off-by: NGNOUBA ARNOLD <[email protected]>
1 parent c26a40d commit 8edeb2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redfish_service_validator/catalog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,10 +1108,10 @@ def getLinks(self, collectionlimit={}):
11081108
if n == 'Actions':
11091109
new_type = item.Type.catalog.getTypeInCatalog('ActionInfo.ActionInfo')
11101110
act_iter = self.act_iterator(item.Value)
1111-
for act in act_iter:
1111+
for num, act in enumerate(act_iter):
11121112
uri = act.get('@Redfish.ActionInfo')
11131113
if isinstance(uri, str):
1114-
my_link = RedfishObject(new_type, 'ActionInfo', item).populate({'@odata.id': uri})
1114+
my_link = RedfishObject(new_type, 'ActionInfo#{}'.format(num), item).populate({'@odata.id': uri})
11151115
my_link.InAnnotation = True
11161116
links.append(my_link)
11171117
if item.Type.IsNav:

0 commit comments

Comments
 (0)