Fix glance mounts compatability
When default value has any concatenation, it tries to resolve variables and always contcatenate even when it's not needed. With that we need to set defaults for the variables that are inside defaults, otherwise even if default not needed - task would fail on default being undefined. Change-Id: I4f445f280a71173f1b72a3b37bd9d54ea5694ac2
This commit is contained in:
parent
93c73e99b1
commit
c9a9e2f87b
@ -171,7 +171,7 @@
|
||||
vars:
|
||||
systemd_mounts:
|
||||
- config_overrides: "{{ mount_var.config_overrides | default({}) }}"
|
||||
what: "{{ mount_var.what | default(mount_var.server ~ ':' ~ mount_var.remote_path) }}"
|
||||
what: "{{ mount_var.what | default(mount_var.server | default('') ~ ':' ~ mount_var.remote_path | default('')) }}"
|
||||
where: "{{ mount_var.where | default(mount_var.local_path) }}"
|
||||
type: "{{ mount_var.type }}"
|
||||
options: "{{ mount_var.options }}"
|
||||
|
Loading…
Reference in New Issue
Block a user