From 37b0b5a833a632d3cefbc9b8cb25c4de8260fe8d Mon Sep 17 00:00:00 2001 From: David Justice Date: Fri, 7 Nov 2014 08:51:23 -0800 Subject: [PATCH] update ruby azure to version 0.6.4 --- lib/vagrant-azure/action/run_instance.rb | 8 +++++--- vagrant-azure.gemspec | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/vagrant-azure/action/run_instance.rb b/lib/vagrant-azure/action/run_instance.rb index 0c7b41f..61a592c 100644 --- a/lib/vagrant-azure/action/run_instance.rb +++ b/lib/vagrant-azure/action/run_instance.rb @@ -91,9 +91,11 @@ module VagrantPlugins end env[:ui].info("Add Role? - #{add_role}") - server = env[:azure_vm_service].create_virtual_machine( - params, options, add_role - ) + if add_role + env[:azure_vm_service].add_role(params.clone.merge(cloud_service_name: config.cloud_service_name), options) + else + env[:azure_vm_service].create_virtual_machine(params, options) + end if server.nil? raise Errors::CreateVMFailure diff --git a/vagrant-azure.gemspec b/vagrant-azure.gemspec index 1dfc786..ccab11c 100644 --- a/vagrant-azure.gemspec +++ b/vagrant-azure.gemspec @@ -48,7 +48,7 @@ Gem::Specification.new do |s| s.files = unignored_files s.executables = unignored_files.map { |f| f[/^bin\/(.*)/, 1] }.compact - s.add_runtime_dependency "azure", "0.6.3" + s.add_runtime_dependency "azure", "0.6.4" s.add_development_dependency "bundler", "~> 1.3" s.add_development_dependency "rake"