lib/fog/azurerm/compute.rb in fog-azure-rm-0.1.0 vs lib/fog/azurerm/compute.rb in fog-azure-rm-0.1.1

- old
+ new

@@ -47,11 +47,11 @@ retry if require('rubygems') raise e.message end 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_compute' require 'azure_mgmt_storage' @@ -60,12 +60,12 @@ retry if require('rubygems') raise e.message end credentials = Fog::Credentials::AzureRM.get_credentials(options[:tenant_id], options[:client_id], options[:client_secret]) - @compute_mgmt_client = ::Azure::ARM::Compute::ComputeManagementClient.new(credentials) + @compute_mgmt_client = ::Azure::ARM::Compute::ComputeManagementClient.new(credentials, resource_manager_endpoint_url) @compute_mgmt_client.subscription_id = options[:subscription_id] - @storage_mgmt_client = ::Azure::ARM::Storage::StorageManagementClient.new(credentials) + @storage_mgmt_client = ::Azure::ARM::Storage::StorageManagementClient.new(credentials, resource_manager_endpoint_url) @storage_mgmt_client.subscription_id = options[:subscription_id] @storage_service = Fog::Storage::AzureRM.new(tenant_id: options[:tenant_id], client_id: options[:client_id], client_secret: options[:client_secret], subscription_id: options[:subscription_id]) end end end