From f3d1c7afe04acca29ef2773254874ea261f935b9 Mon Sep 17 00:00:00 2001 From: Tobias Urdin Date: Fri, 9 Dec 2016 14:45:09 +0100 Subject: [PATCH] Fix a string only containing a variable Changes so that a string that only contained a variable is changed to the variable so that the module fully passes puppet-lint without any warnings. Change-Id: Ie6345c849e91f8668511fffb088b207bdd426300 --- manifests/compute/rbd.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/compute/rbd.pp b/manifests/compute/rbd.pp index 143a53b43..44b201f0e 100644 --- a/manifests/compute/rbd.pp +++ b/manifests/compute/rbd.pp @@ -106,7 +106,7 @@ class nova::compute::rbd ( #resource. $cm = '/usr/bin/virsh secret-define --file /etc/nova/secret.xml | /usr/bin/awk \'{print $2}\' | sed \'/^$/d\' > /etc/nova/virsh.secret' exec { 'get-or-set virsh secret': - command => "${cm}", + command => $cm, unless => "/usr/bin/virsh secret-list | grep ${libvirt_rbd_secret_uuid}", require => [File['/etc/nova/secret.xml'], Service['libvirt']], }