lib/fog/azurerm/dns.rb in fog-azure-rm-0.1.0 vs lib/fog/azurerm/dns.rb in fog-azure-rm-0.1.1
- old
+ new
@@ -29,21 +29,21 @@
class Mock
def initialize(_options = {})
end
end
- # This class provides the actual implemention for service calls.
+ # This class provides the actual implementation for service calls.
class Real
def initialize(options)
begin
require 'azure_mgmt_dns'
rescue LoadError => e
retry if require('rubygems')
raise e.message
end
credentials = Fog::Credentials::AzureRM.get_credentials(options[:tenant_id], options[:client_id], options[:client_secret])
- @dns_client = ::Azure::ARM::Dns::DnsManagementClient.new(credentials)
+ @dns_client = ::Azure::ARM::Dns::DnsManagementClient.new(credentials, resource_manager_endpoint_url)
@dns_client.subscription_id = options[:subscription_id]
@tenant_id = options[:tenant_id]
@client_id = options[:client_id]
@client_secret = options[:client_secret]
@resources = Fog::Resources::AzureRM.new(