ansible-debops-infrastructure

DebOps and Ansible scripts to manage my infrastructure
git clone git://git.erethon.com/ansible-debops-infrastructure
Log | Files | Refs

commit bb70653367721e42db153e2c87fb40177c48cd7a
parent b5eff53fb79b6f61220de3c39de292c9ff1adaa8
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Tue,  1 Oct 2019 00:19:19 +0300

libvirt_host: Fix erroneous condition on volume

Diffstat:
terraform/infrastructure/modules/libvirt_host/main.tf | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/terraform/infrastructure/modules/libvirt_host/main.tf b/terraform/infrastructure/modules/libvirt_host/main.tf @@ -11,7 +11,7 @@ resource "libvirt_volume" "volume" { pool = var.storage_pool format = var.volume_format size = var.volume_size - base_volume_id = (var.volume_source == "" ? libvirt_volume.base_volume[0].id : null) + base_volume_id = (var.volume_source != "" ? libvirt_volume.base_volume[0].id : null) } resource "libvirt_domain" "libvirt_host" {