Skip to content

Commit fed2259

Browse files
committed
fix review comment
1 parent 2673fe4 commit fed2259

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cloudstack/resource_cloudstack_network_acl_rule.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,8 @@ func verifyNetworkACLParams(d *schema.ResourceData) error {
645645

646646
func verifyNetworkACLRuleParams(d *schema.ResourceData, rule map[string]interface{}) error {
647647
if ruleId, ok := rule["rule_id"]; ok && ruleId != nil {
648-
if rId, ok := ruleId.(int); ok && rId > 0 {
648+
if rId, ok := ruleId.(int); ok && rId != 0 {
649+
// Validate only if rule_id is explicitly set (non-zero)
649650
if rId < 1 || rId > 65535 {
650651
return fmt.Errorf(
651652
"%q must be between %d and %d inclusive, got: %d", "rule_id", 1, 65535, rId)

0 commit comments

Comments
 (0)