@@ -548,7 +548,8 @@ filter_attribute_greater_than_value = func(resources, attr, value, prtmsg) {
548
548
if float(v) else null is null {
549
549
# Add the resource and a warning message to the violators list
550
550
message = to_string(address) + " has " + to_string(attr) +
551
- " that is null or undefined."
551
+ " that is null or undefined. " + "It is supposed to be less " +
552
+ "than or equal to " + to_string(value)
552
553
violators[address] = rc
553
554
messages[address] = message
554
555
if prtmsg {
@@ -581,7 +582,8 @@ filter_attribute_greater_than_equal_to_value = func(resources, attr, value, prtm
581
582
if float(v) else null is null {
582
583
# Add the resource and a warning message to the violators list
583
584
message = to_string(address) + " has " + to_string(attr) +
584
- " that is null or undefined."
585
+ " that is null or undefined. " + "It is supposed to be less " +
586
+ "than " + to_string(value)
585
587
violators[address] = rc
586
588
messages[address] = message
587
589
if prtmsg {
@@ -614,7 +616,8 @@ filter_attribute_less_than_value = func(resources, attr, value, prtmsg) {
614
616
if float(v) else null is null {
615
617
# Add the resource and a warning message to the violators list
616
618
message = to_string(address) + " has " + to_string(attr) +
617
- " that is null or undefined."
619
+ " that is null or undefined. " + "It is supposed to be greater " +
620
+ "than or equal to " + to_string(value)
618
621
violators[address] = rc
619
622
messages[address] = message
620
623
if prtmsg {
@@ -647,7 +650,8 @@ filter_attribute_less_than_equal_to_value = func(resources, attr, value, prtmsg)
647
650
if float(v) else null is null {
648
651
# Add the resource and a warning message to the violators list
649
652
message = to_string(address) + " has " + to_string(attr) +
650
- " that is null or undefined. "
653
+ " that is null or undefined. " + "It is supposed to be greater " +
654
+ "than " + to_string(value)
651
655
violators[address] = rc
652
656
messages[address] = message
653
657
if prtmsg {
0 commit comments