This commit is contained in:
Ramakrishnan 2014-04-23 17:41:50 +05:30
Родитель b5d9a16264
Коммит 4de68d3124
2 изменённых файлов: 7 добавлений и 4 удалений

Просмотреть файл

@ -158,7 +158,7 @@ module VagrantPlugins
def self.action_prepare_boot
Vagrant::Action::Builder.new.tap do |b|
b.use Provision
b.use SyncFolders
# b.use SyncFolders
end
end
@ -173,7 +173,8 @@ module VagrantPlugins
if !env1[:result]
b1.use Call, IsState, :StoppedDeallocated do |env2, b2|
if env2[:result]
b2.use action_prepare_boot
# b2.use action_prepare_boot
b2.use Provision
b2.use StartInstance # start this instance again
b2.use Call, WaitForState, :ReadyRole do |env3, b3|
if env3[:result]
@ -182,6 +183,7 @@ module VagrantPlugins
'vagrant_azure.vm_started', :name => $`
)
b3.use WaitForCommunicate
b3.use SyncFolders
end
end
else
@ -191,8 +193,9 @@ module VagrantPlugins
end
end
else
b1.use action_prepare_boot
b1.use Provision
b1.use RunInstance # Launch a new instance
b1.use SyncFolders
b1.use Call, WaitForState, :ReadyRole do |env2, b2|
if env2[:result]
env2[:machine].id =~ /@/

Просмотреть файл

@ -11,7 +11,7 @@ module Vagrant
def communicate
unless @communicator
if @config.vm.guest == :windows
@communicator = VagrantPlugins::VagrantHyperV::Communicator::PowerShell.new(self)
@communicator = VagrantPlugins::WinAzure::Communicator::PowerShell.new(self)
else
@communicator = original_communicate
end