the tls code was leaking out $service as a global variable, which
was causing all manner of confusing errors in grenade trying to
use that variable name. All lower case vars should be localize.
Change-Id: I74fa597f20ee7c714cab83490b42d874ea93db02
... | ... |
@@ -323,7 +323,8 @@ function make_root_CA { |
323 | 323 |
# |
324 | 324 |
# Uses global ``SSL_ENABLED_SERVICES`` |
325 | 325 |
function is_ssl_enabled_service { |
326 |
- services=$@ |
|
326 |
+ local services=$@ |
|
327 |
+ local service="" |
|
327 | 328 |
for service in ${services}; do |
328 | 329 |
[[ ,${SSL_ENABLED_SERVICES}, =~ ,${service}, ]] && return 0 |
329 | 330 |
done |