Skip to content

Commit

Permalink
Gate vbox reload (#34588)
Browse files Browse the repository at this point in the history
* Gate vbox reload

* Lower log level
  • Loading branch information
Mike Place authored and Nicole Thomas committed Jul 11, 2016
1 parent e94ab20 commit 81d5a7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions salt/utils/virtualbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

except ImportError:
VirtualBoxManager = None
log.exception("Couldn't import VirtualBox API")
log.trace("Couldn't import VirtualBox API")

_virtualboxManager = None

Expand Down Expand Up @@ -130,7 +130,7 @@ def vb_get_manager():
@rtype: VirtualBoxManager
"""
global _virtualboxManager
if _virtualboxManager is None:
if _virtualboxManager is None and HAS_LIBS:
# Reloading the API extends sys.paths for subprocesses of multiprocessing, since they seem to share contexts
reload(vboxapi)
_virtualboxManager = vboxapi.VirtualBoxManager(None, None)
Expand Down

0 comments on commit 81d5a7a

Please sign in to comment.