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
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user