lib/fog/azurerm/requests/resources/delete_resource_group.rb in fog-azure-rm-0.0.1 vs lib/fog/azurerm/requests/resources/delete_resource_group.rb in fog-azure-rm-0.0.2
- old
+ new
@@ -4,21 +4,23 @@
class Real
def delete_resource_group(name)
begin
Fog::Logger.debug "Deleting Resource Group: #{name}."
promise = @rmc.resource_groups.delete(name)
- result = promise.value!
+ promise.value!
Fog::Logger.debug "Resource Group #{name} deleted successfully."
- result
+ true
rescue MsRestAzure::AzureOperationError => e
msg = "Exception deleting Resource Group #{name}. #{e.body['error']['message']}"
raise msg
end
end
end
class Mock
def delete_resource_group(name)
+ Fog::Logger.debug "Resource Group #{name} deleted successfully."
+ return true
end
end
end
end
end