From 568fced0d08dc3945739a63eb37bf196130e1b11 Mon Sep 17 00:00:00 2001 From: Mike Raineri Date: Fri, 22 Sep 2023 09:05:15 -0400 Subject: [PATCH] Updated regex used to determine if a property is an array to not collide with the collection capabilities term Signed-off-by: Mike Raineri --- redfish_service_validator/catalog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redfish_service_validator/catalog.py b/redfish_service_validator/catalog.py index 91ed0ee..8653baf 100644 --- a/redfish_service_validator/catalog.py +++ b/redfish_service_validator/catalog.py @@ -581,7 +581,7 @@ def IsCollection(self): else: tree.append(my_type) break - return any([re.match(r'Collection(.*)', typ) for typ in tree]) + return any([re.match(r'Collection\((.*)', typ) for typ in tree]) def getCollectionType(self): my_new_type = stripCollection(self.fulltype)