From 41b80bc719a8853aef2e6a1a2e477fd177b8ad0b Mon Sep 17 00:00:00 2001 From: catborise Date: Fri, 20 Jul 2018 14:58:22 +0300 Subject: [PATCH] libxml2 artifact correction. --- create/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create/views.py b/create/views.py index d2c55d6..cd8e133 100644 --- a/create/views.py +++ b/create/views.py @@ -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")