providers/virtualbox: if no box, don't import the master
This commit is contained in:
parent
c17efbed75
commit
efa01abb12
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue