aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-10 15:14:22 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-10 15:14:22 -0300
commit5ca1af4c74c9bde2a9e2c14e1bd54c4899ddf5f5 (patch)
treec3f792152f2e5a75753b281d618374032b4cdee0
parentc9c9675e9376d831b1975ccc0318c17dcfdae864 (diff)
downloadpuppet-virtual-5ca1af4c74c9bde2a9e2c14e1bd54c4899ddf5f5.tar.gz
puppet-virtual-5ca1af4c74c9bde2a9e2c14e1bd54c4899ddf5f5.tar.bz2
Additional check for kvmx config
-rw-r--r--manifests/kvm/kvmx/config.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/manifests/kvm/kvmx/config.pp b/manifests/kvm/kvmx/config.pp
index 2424a0f..2048572 100644
--- a/manifests/kvm/kvmx/config.pp
+++ b/manifests/kvm/kvmx/config.pp
@@ -10,7 +10,7 @@ define virtual::kvm::kvmx::config(
environment => [ "HOME=/home/${vm}" ],
cwd => "/home/${vm}/vms/${vm}",
#onlyif => "/usr/local/bin/kvmx config ${vm} ${param} | grep -v memory=\"${value}\"",
- onlyif => "/usr/local/bin/kvmx config ${vm} ${param} | grep -v ^${value}$",
+ onlyif => "/usr/local/bin/kvmx config ${vm} ${param} | grep -v ^${value}$ || test `/usr/local/bin/kvmx config ${vm} ${param} | wc -l` -eq 0",
require => Exec["kvmx-init-${vm}"],
}
}