lib/fog/azurerm/requests/storage/delete_recovery_vault.rb in fog-azure-rm-0.1.2 vs lib/fog/azurerm/requests/storage/delete_recovery_vault.rb in fog-azure-rm-0.2.0
- old
+ new
@@ -4,10 +4,10 @@
# Real class for Recovery Vault request
class Real
def delete_recovery_vault(resource_group, name)
msg = "Deleting Recovery Vault #{name} from Resource Group #{resource_group}"
Fog::Logger.debug msg
- resource_url = "#{AZURE_RESOURCE}/subscriptions/#{@subscription_id}/resourceGroups/#{resource_group}/providers/Microsoft.RecoveryServices/vaults/#{name}?api-version=2016-05-01"
+ resource_url = "#{AZURE_RESOURCE}/subscriptions/#{@subscription_id}/resourceGroups/#{resource_group}/providers/Microsoft.RecoveryServices/vaults/#{name}?api-version=#{REST_CLIENT_API_VERSION[1]}"
begin
token = Fog::Credentials::AzureRM.get_token(@tenant_id, @client_id, @client_secret)
RestClient.delete(
resource_url,
accept: 'application/json',