We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 27579e7 + 01a3a40 commit 8395f06Copy full SHA for 8395f06
manifests/storage/server.pp
@@ -25,12 +25,13 @@
25
$config_file_path = "${type}-server/${name}.conf"
26
) {
27
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
- ) {
+ # Warn if ${type-server} isn't included in the pipeline
+ if is_array($pipeline) {
+ if !member($pipeline, "${type}-server") {
33
warning("swift storage server ${type} must specify ${type}-server")
+ }
+ } elsif $pipeline != "${type}-server" {
34
+ warning("swift storage server ${type} must specify ${type}-server")
35
}
36
37
include "swift::storage::${type}"
0 commit comments