diff --git a/lib/zanzibar.rb b/lib/zanzibar.rb index 1b5f2d4..606e2ec 100644 --- a/lib/zanzibar.rb +++ b/lib/zanzibar.rb @@ -151,6 +151,7 @@ module Zanzibar .hash[:envelope][:body][:download_file_attachment_by_item_id_response][:download_file_attachment_by_item_id_result] fail "There was an error getting the #{args[:type]} for secret #{args[:scrt_id]}: #{response[:errors][:string]}" if response[:errors] write_secret_to_file(path, response) + return File.join(path, response[:file_name]) rescue Savon::Error => err raise "There was an error getting the #{args[:type]} for secret #{args[:scrt_id]}: #{err}" end diff --git a/lib/zanzibar/version.rb b/lib/zanzibar/version.rb index 94a9c83..c95c430 100644 --- a/lib/zanzibar/version.rb +++ b/lib/zanzibar/version.rb @@ -1,3 +1,3 @@ module Zanzibar - VERSION = '0.1.11' + VERSION = '0.1.12' end