fix null variable
This commit is contained in:
parent
0096b77f3d
commit
5990d691dd
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
version: 2
|
version: 2
|
||||||
ethernets:
|
ethernets:
|
||||||
ens3:
|
ens3:
|
||||||
%{ if fixed_address }
|
%{ if fixed_address != "" }
|
||||||
dhcp4: false
|
dhcp4: false
|
||||||
addresses:
|
addresses:
|
||||||
- "${fixed_address}"
|
- "${fixed_address}"
|
||||||
|
|
|
@ -62,5 +62,5 @@ variable "data_disk" {
|
||||||
|
|
||||||
variable "fixed_address" {
|
variable "fixed_address" {
|
||||||
type = string
|
type = string
|
||||||
default = null
|
default = ""
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue