fix null variable

This commit is contained in:
Pim Kunis 2023-04-08 18:44:46 +02:00
parent 0096b77f3d
commit 5990d691dd
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
version: 2
ethernets:
ens3:
%{ if fixed_address }
%{ if fixed_address != "" }
dhcp4: false
addresses:
- "${fixed_address}"

View file

@ -62,5 +62,5 @@ variable "data_disk" {
variable "fixed_address" {
type = string
default = null
default = ""
}