Fixing open nebula

This commit is contained in:
Adolfo Gómez García 2016-07-18 20:13:14 +02:00
parent 1c9bc68a66
commit c5582c3092
2 changed files with 3 additions and 7 deletions

View File

@ -41,7 +41,7 @@ import six
import xmlrpclib
from uds.core.util import xml2dict
__updated__ = '2016-07-11'
__updated__ = '2016-07-18'
logger = logging.getLogger(__name__)
@ -183,7 +183,7 @@ class OpenNebulaClient(object):
1.- Session string
2.- Object ID (integer)
3.- The new template contents. Syntax can be the usual attribute=value or XML.
4.- Update type. 0 replace the whote template, 1 merge with the existing one
4.- Update type. 0 replace the whole template, 1 merge with the existing one
'''
result = self.connection.one.template.update(self.sessionString, int(templateId), template, int(updateType))
return checkResult(result, parseResult=False)

View File

@ -38,7 +38,7 @@ from defusedxml import minidom
# Python bindings for OpenNebula
from .common import sanitizeName
__updated__ = '2016-07-11'
__updated__ = '2016-07-18'
logger = logging.getLogger(__name__)
@ -158,10 +158,6 @@ def deployFrom(api, templateId, name):
name: Name (sanitized) of the machine
comments: Comments for machine
templateId: Id of the template to deploy from
clusterId: Id of the cluster to deploy to
displayType: 'vnc' or 'spice'. Display to use ad OpenNebula admin interface
memoryMB: Memory requested for machine, in MB
guaranteedMB: Minimum memory guaranteed for this machine
Returns:
Id of the machine being created form template