feat(secgroup_rules): add default description in case none is passed for securitygroup_rules
This commit is contained in:
parent
6a2bfa2bc9
commit
0d8bfda9f0
4
main.tf
4
main.tf
@ -23,7 +23,7 @@ resource "openstack_networking_secgroup_rule_v2" "ingress" {
|
||||
security_group_id = openstack_networking_secgroup_v2.this.id
|
||||
tenant_id = var.tenant_id
|
||||
|
||||
description = try(each.value.description, false) != false ? each.value.description : null
|
||||
description = try(each.value.description, false) != false ? each.value.description : "Terraform managed."
|
||||
ethertype = try(each.value.ethertype, false) != false ? each.value.ethertype : "IPv4"
|
||||
protocol = try(each.value.protocol, false) != false ? each.value.protocol : "tcp"
|
||||
port_range_min = try(each.value.port_range_min, false) != false ? each.value.port_range_min : null
|
||||
@ -39,7 +39,7 @@ resource "openstack_networking_secgroup_rule_v2" "egress" {
|
||||
security_group_id = openstack_networking_secgroup_v2.this.id
|
||||
tenant_id = var.tenant_id
|
||||
|
||||
description = try(each.value.description, false) != false ? each.value.description : null
|
||||
description = try(each.value.description, false) != false ? each.value.description : "Terraform managed."
|
||||
ethertype = try(each.value.ethertype, false) != false ? each.value.ethertype : "IPv4"
|
||||
protocol = try(each.value.protocol, false) != false ? each.value.protocol : "tcp"
|
||||
port_range_min = try(each.value.port_range_min, false) != false ? each.value.port_range_min : null
|
||||
|
Loading…
Reference in New Issue
Block a user