@@ -435,7 +435,7 @@ def find_key_in_payload(path_to_key, redfish_parent_payload):
435
435
key_exists = False
436
436
return key_exists
437
437
438
- def validatePropertyRequirement (propResourceObj , profile_entry , rf_payload_tuple , item_name , chkCondition = False ):
438
+ def validatePropertyRequirement (propResourceObj , profile_entry , rf_payload_tuple , item_name ):
439
439
"""
440
440
Validate PropertyRequirements
441
441
"""
@@ -486,7 +486,7 @@ def validatePropertyRequirement(propResourceObj, profile_entry, rf_payload_tuple
486
486
if checkConditionalRequirement (propResourceObj , item , rf_payload_tuple ):
487
487
my_logger .info ("\t Condition DOES apply" )
488
488
conditionalMsgs , conditionalCounts = validatePropertyRequirement (
489
- propResourceObj , item , rf_payload_tuple , item_name , chkCondition = True )
489
+ propResourceObj , item , rf_payload_tuple , item_name )
490
490
counts .update (conditionalCounts )
491
491
for item in conditionalMsgs :
492
492
item .name = item .name .replace ('.' , '.Conditional.' , 1 )
@@ -541,9 +541,8 @@ def validatePropertyRequirement(propResourceObj, profile_entry, rf_payload_tuple
541
541
if not success :
542
542
my_logger .error ("MinSupportValues failed" )
543
543
544
- if "Values" in profile_entry and not chkCondition :
544
+ if "Values" in profile_entry :
545
545
# Default to AnyOf
546
- # NOTE: chkCondition seems to skip this if a ConditionalRequirement is met, this may be unnecessary
547
546
548
547
my_compare = profile_entry .get ("Comparison" , "AnyOf" )
549
548
msg , success = checkComparison (redfish_value , my_compare , profile_entry .get ("Values" , []))
0 commit comments