mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-23 22:55:23 +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', '')
|
||||
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")
|
||||
|
|
Loading…
Reference in a new issue