diff --git a/manifests/network.pp b/manifests/network.pp index 929189a..a44cd36 100644 --- a/manifests/network.pp +++ b/manifests/network.pp @@ -111,7 +111,7 @@ } exec { "virsh-net-define-${title}": command => "virsh net-define ${network_file}", - unless => "virsh -q net-list --all | grep -Eq '^\s*${title}'", + unless => "virsh -q net-list --all | grep -Eq '^\s*${title}\s'", require => Exec["create-${network_file}"], } if $autostart {