mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
virt_boot: some easy python3 fixes.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
committed by
Pierre-Yves Chibon
parent
48c54faca6
commit
9d4f1094a8
@@ -100,12 +100,12 @@ except ImportError:
|
||||
import elementtree.ElementTree as ET
|
||||
from elementtree.ElementTree import SubElement
|
||||
except ImportError:
|
||||
print "failed=True msg='ElementTree python module unavailable'"
|
||||
print("failed=True msg='ElementTree python module unavailable'")
|
||||
|
||||
try:
|
||||
import libvirt
|
||||
except ImportError:
|
||||
print "failed=True msg='libvirt python module unavailable'"
|
||||
print("failed=True msg='libvirt python module unavailable'")
|
||||
sys.exit(1)
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
Reference in New Issue
Block a user