From bdbcf5ca883969a227e3ae3c60a4f0e3b04a04a1 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Sat, 20 Apr 2013 22:29:57 -0400 Subject: [PATCH] Fix warnings in storage/server.pp. Updates the swift storage/server class so that we quote $pipeline before doing a comparison check for the server type. This fixes an issue where warnings would always get printed when using the default $pipeline variable. Fixes LP Bug #1171052. Change-Id: I3076b6110f1a42c0e6c179d18952b0b013908f01 --- manifests/storage/server.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/storage/server.pp b/manifests/storage/server.pp index 618def7a..cac08117 100644 --- a/manifests/storage/server.pp +++ b/manifests/storage/server.pp @@ -25,7 +25,7 @@ define swift::storage::server( # TODO if array does not include type-server, warn if( (is_array($pipeline) and ! member($pipeline, "${type}-server")) or - $pipeline != "${type}-server" + "$pipeline" != "${type}-server" ) { warning("swift storage server ${type} must specify ${type}-server") }