Some more cleanups and fix LXML objectify import

This commit is contained in:
2018-06-06 13:03:02 -04:00
parent 6b6ebaa9be
commit ab13c555f0
2 changed files with 12 additions and 9 deletions

View File

@ -22,7 +22,7 @@
import os, sys, libvirt, uuid
import kazoo.client
import lxml
import lxml.objectify
import click
import operator
@ -31,9 +31,9 @@ import operator
#
def validateUUID(dom_uuid):
try:
uuid.UUID(dom_uuid, version=4)
uuid.UUID(dom_uuid)
return True
except ValueError:
except:
return False