providers/virtualbox: if no box, don't import the master

This commit is contained in:
Mitchell Hashimoto 2015-10-16 10:30:04 -07:00
parent c17efbed75
commit efa01abb12
1 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,11 @@ module VagrantPlugins
end end
def call(env) def call(env)
# If we don't have a box, nothing to do
if !env[:machine].box
return @app.call(env)
end
# Do the import while locked so that nobody else imports # Do the import while locked so that nobody else imports
# a master at the same time. This is a no-op if we already # a master at the same time. This is a no-op if we already
# have a master that exists. # have a master that exists.