Handle both string and array for memcache param.
Evaluation Error: Left match operand must result in a String value. Got an Array. at .../modules/swift/manifests/proxy/cache.pp:26:6 Please note that Puppet syntax, while it defines a regex type, does NOT permit regex type arguments to be passed to functions (as literals or assigned to variables). Change-Id: Ia230720e2cafb5b03404cea1ba54dd3b0ced6af3 Closes-Bug: #1449272 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
parent
3ceea9fa89
commit
ef9f9a4194
@ -23,7 +23,7 @@ class swift::proxy::cache(
|
|||||||
) {
|
) {
|
||||||
|
|
||||||
# require the memcached class if its on the same machine
|
# require the memcached class if its on the same machine
|
||||||
if $memcache_servers =~ /^127\.0\.0\.1/ {
|
if grep(any2array($memcache_servers), '^127\.0\.0\.1') {
|
||||||
Class['memcached'] -> Class['swift::proxy::cache']
|
Class['memcached'] -> Class['swift::proxy::cache']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user