Skip to content

Commit 894aa6c

Browse files
authored
Merge pull request #618 from ArnoldTchegou/fix-htmllogs-for-missing-actioninfo
fix: show all ActionInfo entries in HTML logs
2 parents c6f5b40 + 8edeb2f commit 894aa6c

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
@@ -1101,10 +1101,10 @@ def getLinks(self, collectionlimit={}):
11011101
if n == 'Actions':
11021102
new_type = item.Type.catalog.getTypeInCatalog('ActionInfo.ActionInfo')
11031103
act_iter = self.act_iterator(item.Value)
1104-
for act in act_iter:
1104+
for num, act in enumerate(act_iter):
11051105
uri = act.get('@Redfish.ActionInfo')
11061106
if isinstance(uri, str):
1107-
my_link = RedfishObject(new_type, 'ActionInfo', item).populate({'@odata.id': uri})
1107+
my_link = RedfishObject(new_type, 'ActionInfo#{}'.format(num), item).populate({'@odata.id': uri})
11081108
my_link.InAnnotation = True
11091109
links.append(my_link)
11101110
if item.Type.IsNav:

0 commit comments

Comments
 (0)