fix boolean logic
This commit is contained in:
parent
49720ab12a
commit
3eac32df64
1 changed files with 2 additions and 2 deletions
4
debian/files/cloud_init.cfg.tftpl
vendored
4
debian/files/cloud_init.cfg.tftpl
vendored
|
@ -40,7 +40,7 @@ runcmd:
|
||||||
- dhclient
|
- dhclient
|
||||||
- locale-gen
|
- locale-gen
|
||||||
|
|
||||||
%{ if data_disk }
|
%{ if data_disk != "" }
|
||||||
device_aliases:
|
device_aliases:
|
||||||
data: /dev/vdb
|
data: /dev/vdb
|
||||||
disk_setup:
|
disk_setup:
|
||||||
|
@ -55,7 +55,7 @@ fs_setup:
|
||||||
overwrite: false
|
overwrite: false
|
||||||
%{ endif }
|
%{ endif }
|
||||||
|
|
||||||
%{ if data_disk || data_share }
|
%{ if data_disk != "" || data_share != "" }
|
||||||
mounts:
|
mounts:
|
||||||
%{ if data_disk != "" }
|
%{ if data_disk != "" }
|
||||||
- ["data.1", "/mnt/data"]
|
- ["data.1", "/mnt/data"]
|
||||||
|
|
Reference in a new issue