Skip to content

Commit 85e901b

Browse files
committed
Reduced severity of missing schema for an action from error to warning to be consistent with other warnings
Signed-off-by: Mike Raineri <michael.raineri@dell.com>
1 parent 40efa08 commit 85e901b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

redfish_service_validator/validateRedfish.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,12 @@ def validateComplex(service, sub_obj, prop_name, oem_check=True):
260260
for act_name, actionDecoded in my_actions:
261261
if '@' in act_name:
262262
continue
263-
act_schema = sub_obj.Type.catalog.getSchemaDocByClass(getNamespace(act_name))
264-
act_class = act_schema.classes.get(getNamespace(act_name))
263+
try:
264+
act_schema = sub_obj.Type.catalog.getSchemaDocByClass(getNamespace(act_name))
265+
act_class = act_schema.classes.get(getNamespace(act_name))
266+
except:
267+
my_logger.warning('Schema not found for action {}'.format(act_name))
268+
continue
265269

266270
a, c = validateAction(act_name, actionDecoded, act_class.actions)
267271

0 commit comments

Comments
 (0)