From 7c4bbb0a77e383081e613b257e671e8a46308da8 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Fri, 7 Sep 2012 16:05:42 -0400 Subject: [PATCH] add import sys to virt module b/c it needs it if the libvirt python module is missing --- virt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/virt b/virt index c1181d7a5d8..5d69e36769a 100755 --- a/virt +++ b/virt @@ -19,6 +19,8 @@ VIRT_FAILED = 1 VIRT_SUCCESS = 0 VIRT_UNAVAILABLE=2 +import sys + try: import libvirt except ImportError: