From ab36dd47e7040810a7f204aa4afe9109548197aa Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Tue, 7 Feb 2012 22:09:43 -0800 Subject: [PATCH] Update devstack/libvirt.py --- devstack/libvirt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devstack/libvirt.py b/devstack/libvirt.py index f41f01a1..9301d421 100644 --- a/devstack/libvirt.py +++ b/devstack/libvirt.py @@ -31,6 +31,8 @@ VIRT_LIB = VIRT_TYPE def _get_virt_lib(): + #late import so that we don't always need this library to be active + #ie if u aren't using libvirt in the first place return utils.import_module(VIRT_LIB) @@ -48,8 +50,6 @@ def _destroy_domain(conn, dom_name): def clear_libvirt_domains(virt_type, inst_prefix): - #late import so that we don't always need this library to be active - #ie if u aren't using libvirt in the first place libvirt = _get_virt_lib() virt_protocol = LIBVIRT_PROTOCOL_MAP.get(virt_type) if not libvirt or not virt_protocol or not inst_prefix: