lib/fog/azurerm/requests/storage/delete_container.rb in fog-azure-rm-0.1.0 vs lib/fog/azurerm/requests/storage/delete_container.rb in fog-azure-rm-0.1.1

- old
+ new

@@ -1,17 +1,21 @@ module Fog module Storage class AzureRM # This class provides the actual implementation for service calls. class Real - def delete_container(name, options = {}) - msg = "Deleting container: #{name}." + def delete_container(name) + options = { request_id: SecureRandom.uuid } + msg = "Deleting container: #{name}. options: #{options}" Fog::Logger.debug msg + begin @blob_client.delete_container(name, options) rescue Azure::Core::Http::HTTPError => ex + return true if ex.message.include?('(404)') raise_azure_exception(ex, msg) end + Fog::Logger.debug "Container #{name} deleted successfully." true end end