mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-06-08 13:24:36 +00:00
libxml2 artifact correction.
This commit is contained in:
@@ -74,7 +74,7 @@ def create_instance(request, compute_id):
|
|||||||
xml = request.POST.get('from_xml', '')
|
xml = request.POST.get('from_xml', '')
|
||||||
try:
|
try:
|
||||||
name = util.get_xml_path(xml, '/domain/name')
|
name = util.get_xml_path(xml, '/domain/name')
|
||||||
except util.libxml2.parserError:
|
except util.etree.ParserError:
|
||||||
name = None
|
name = None
|
||||||
if name in instances:
|
if name in instances:
|
||||||
error_msg = _("A virtual machine with this name already exists")
|
error_msg = _("A virtual machine with this name already exists")
|
||||||
|
|||||||
Reference in New Issue
Block a user