1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 15:15:22 +00:00

libxml2 artifact correction.

This commit is contained in:
catborise 2018-07-20 14:58:22 +03:00
parent 5adeead68d
commit 41b80bc719

View file

@ -74,7 +74,7 @@ def create_instance(request, compute_id):
xml = request.POST.get('from_xml', '')
try:
name = util.get_xml_path(xml, '/domain/name')
except util.libxml2.parserError:
except util.etree.ParserError:
name = None
if name in instances:
error_msg = _("A virtual machine with this name already exists")