Return path of secret file
This commit is contained in:
@@ -151,6 +151,7 @@ module Zanzibar
|
|||||||
.hash[:envelope][:body][:download_file_attachment_by_item_id_response][:download_file_attachment_by_item_id_result]
|
.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]
|
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)
|
write_secret_to_file(path, response)
|
||||||
|
return File.join(path, response[:file_name])
|
||||||
rescue Savon::Error => err
|
rescue Savon::Error => err
|
||||||
raise "There was an error getting the #{args[:type]} for secret #{args[:scrt_id]}: #{err}"
|
raise "There was an error getting the #{args[:type]} for secret #{args[:scrt_id]}: #{err}"
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
module Zanzibar
|
module Zanzibar
|
||||||
VERSION = '0.1.11'
|
VERSION = '0.1.12'
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user