From 78005ed05cdf126ea6bd24fb5f2ab50648aad6fe Mon Sep 17 00:00:00 2001 From: nilsver Date: Tue, 31 Dec 2024 10:53:58 +0000 Subject: [PATCH] add more checks2 --- resources/recipes/prepare_system.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/recipes/prepare_system.rb b/resources/recipes/prepare_system.rb index 5ba52c6..ae1ddf1 100644 --- a/resources/recipes/prepare_system.rb +++ b/resources/recipes/prepare_system.rb @@ -89,7 +89,7 @@ elasticache = {} end -if !elasticache.empty? && !elasticache['cfg_address'].nil? && !elasticache['cfg_address'].emtpy? && !elasticache['cfg_port'].nil? && !elasticache['cfg_port'].emtpy? +if !elasticache.empty? && !elasticache['cfg_address'].nil? && !elasticache['cfg_address'].empty? && !elasticache['cfg_port'].nil? && !elasticache['cfg_port'].empty? node.default['redborder']['memcached']['server_list'] = getElasticacheNodes(elasticache['cfg_address'], elasticache['cfg_port']) node.default['redborder']['memcached']['port'] = elasticache['cfg_port'] node.default['redborder']['memcached']['hosts'] = joinHostArray2port(node['redborder']['memcached']['server_list'], node['redborder']['memcached']['port']).join(',')