Skip to content

Commit

Permalink
add more checks2
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsver committed Dec 31, 2024
1 parent 19a9f22 commit 78005ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/recipes/prepare_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(',')
Expand Down

0 comments on commit 78005ed

Please sign in to comment.