mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-24 15:15:22 +00:00
libxml2 artifact correction.
This commit is contained in:
parent
5adeead68d
commit
41b80bc719
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue