1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-20 06:50:23 +03:00

Minor fixes

This commit is contained in:
Adolfo Gómez García 2017-03-06 08:40:22 +01:00
parent 4c7b48588f
commit d566285098
2 changed files with 2 additions and 5 deletions

View File

@ -38,7 +38,7 @@ from defusedxml import minidom
# Python bindings for OpenNebula
from .common import sanitizeName
__updated__ = '2017-03-02'
__updated__ = '2017-03-03'
logger = logging.getLogger(__name__)
@ -113,7 +113,7 @@ def create(api, fromTemplateId, name, toDataStore):
return six.text_type(templateId)
except Exception as e:
logger.error('Creating template on OpenNebula: {}'.format(e))
logger.exception('Creating template on OpenNebula: {}'.format(e))
try:
api.deleteTemplate(templateId) # Try to remove created template in case of fail
except Exception:

View File

@ -27,9 +27,6 @@ if not os.path.isfile(remoteViewer):
theFile = '''{m.r.as_file}'''
filename = tools.saveTempFile(theFile)
filename = tools.saveTempFile(theFile)
subprocess.Popen([remoteViewer, filename])