Skip to content

Commit 8395f06

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Fix spurious warning in pipeline check"
2 parents 27579e7 + 01a3a40 commit 8395f06

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

manifests/storage/server.pp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@
2525
$config_file_path = "${type}-server/${name}.conf"
2626
) {
2727
28-
# TODO if array does not include type-server, warn
29-
if(
30-
(is_array($pipeline) and ! member($pipeline, "${type}-server")) or
31-
$pipeline != "${type}-server"
32-
) {
28+
# Warn if ${type-server} isn't included in the pipeline
29+
if is_array($pipeline) {
30+
if !member($pipeline, "${type}-server") {
3331
warning("swift storage server ${type} must specify ${type}-server")
32+
}
33+
} elsif $pipeline != "${type}-server" {
34+
warning("swift storage server ${type} must specify ${type}-server")
3435
}
3536
3637
include "swift::storage::${type}"

0 commit comments

Comments
 (0)