From 9d88b3eedd3dfd0a3c171ffd2551b0ca5479211b 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 --- library/virt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/virt b/library/virt index c1181d7a5d8..5d69e36769a 100755 --- a/library/virt +++ b/library/virt @@ -19,6 +19,8 @@ VIRT_FAILED = 1 VIRT_SUCCESS = 0 VIRT_UNAVAILABLE=2 +import sys + try: import libvirt except ImportError: