From efa01abb124361daa19aa6e5683b7805aae08839 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 16 Oct 2015 10:30:04 -0700 Subject: [PATCH] providers/virtualbox: if no box, don't import the master --- plugins/providers/virtualbox/action/import_master.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/providers/virtualbox/action/import_master.rb b/plugins/providers/virtualbox/action/import_master.rb index 17296bbcc..ae8f52f32 100644 --- a/plugins/providers/virtualbox/action/import_master.rb +++ b/plugins/providers/virtualbox/action/import_master.rb @@ -12,6 +12,11 @@ module VagrantPlugins end 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 # a master at the same time. This is a no-op if we already # have a master that exists.