diff --git a/libraries/azure_rg.rb b/libraries/azure_rg.rb index 55677ffa0..48b734642 100644 --- a/libraries/azure_rg.rb +++ b/libraries/azure_rg.rb @@ -1,5 +1,5 @@ -require_relative 'common/helpers' +require File.expand_path(File.dirname(__FILE__) + '/common/helpers') # Class to test the resources in Resource Groups # diff --git a/libraries/azure_vm.rb b/libraries/azure_vm.rb index 743ac4c1b..8ba2377af 100644 --- a/libraries/azure_vm.rb +++ b/libraries/azure_vm.rb @@ -1,5 +1,5 @@ -require_relative 'common/helpers' +require File.expand_path(File.dirname(__FILE__) + '/common/helpers') # Class to retrieve information about the specified virtual machine # diff --git a/libraries/azure_vm_datadisks.rb b/libraries/azure_vm_datadisks.rb index fc036608e..bf96db300 100644 --- a/libraries/azure_vm_datadisks.rb +++ b/libraries/azure_vm_datadisks.rb @@ -1,5 +1,5 @@ -require_relative 'common/helpers' +require File.expand_path(File.dirname(__FILE__) + '/common/helpers') require 'uri' # Class to test the data disks that are attached to the specified VM diff --git a/libraries/common/helpers.rb b/libraries/common/helpers.rb index 34813a742..3655e5846 100644 --- a/libraries/common/helpers.rb +++ b/libraries/common/helpers.rb @@ -1,9 +1,9 @@ -require_relative '../azure_conn' +require File.expand_path(File.dirname(__FILE__) + '/../azure_conn') -require_relative 'resource_management' -require_relative 'compute_management' -require_relative 'network_management' +require File.expand_path(File.dirname(__FILE__) + '/resource_management') +require File.expand_path(File.dirname(__FILE__) + '/compute_management') +require File.expand_path(File.dirname(__FILE__) + '/network_management') # Helper class to configure and give access to the various management components of Azure # Also provides shortcuts for certain components, such as returing the VM object and performing