diff options
-rw-r--r-- | manifests/kvm/kvmx/config.pp | 2 |
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}"], } } |