lib/renuo/cli/app/secrets_fetcher.rb in renuo-cli-4.5.1 vs lib/renuo/cli/app/secrets_fetcher.rb in renuo-cli-4.5.2
- old
+ new
@@ -32,14 +32,14 @@
item_id = extract_item_id(private_link)
item_json = get_item(item_id)
return if item_json.nil?
- item[:env_variables].each do |env_variable|
+ item[:env_variables]&.each do |env_variable|
process_env_variable(env_variable[:name], item_id, item_json)
end
- item[:files].each do |file|
+ item[:files]&.each do |file|
process_file(file[:folder] || item[:default_folder], file[:name], item_json, item_id)
end
end
def process_env_variable(name, item_id, item_json)