Skip to content

Commit 5512522

Browse files
committed
2 parents 0e5b924 + 0e80f51 commit 5512522

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

governance/third-generation/common-functions/tfplan-functions/tfplan-functions.sentinel

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,8 @@ filter_attribute_greater_than_value = func(resources, attr, value, prtmsg) {
548548
if float(v) else null is null {
549549
# Add the resource and a warning message to the violators list
550550
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)
552553
violators[address] = rc
553554
messages[address] = message
554555
if prtmsg {
@@ -581,7 +582,8 @@ filter_attribute_greater_than_equal_to_value = func(resources, attr, value, prtm
581582
if float(v) else null is null {
582583
# Add the resource and a warning message to the violators list
583584
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)
585587
violators[address] = rc
586588
messages[address] = message
587589
if prtmsg {
@@ -614,7 +616,8 @@ filter_attribute_less_than_value = func(resources, attr, value, prtmsg) {
614616
if float(v) else null is null {
615617
# Add the resource and a warning message to the violators list
616618
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)
618621
violators[address] = rc
619622
messages[address] = message
620623
if prtmsg {
@@ -647,7 +650,8 @@ filter_attribute_less_than_equal_to_value = func(resources, attr, value, prtmsg)
647650
if float(v) else null is null {
648651
# Add the resource and a warning message to the violators list
649652
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)
651655
violators[address] = rc
652656
messages[address] = message
653657
if prtmsg {

0 commit comments

Comments
 (0)