mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
add import sys to virt module b/c it needs it if the libvirt python
module is missing
This commit is contained in:
parent
0709c48f64
commit
9d88b3eedd
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,8 @@ VIRT_FAILED = 1
|
|||
VIRT_SUCCESS = 0
|
||||
VIRT_UNAVAILABLE=2
|
||||
|
||||
import sys
|
||||
|
||||
try:
|
||||
import libvirt
|
||||
except ImportError:
|
||||
|
|
Loading…
Reference in a new issue