forked from shaba/openuds
Fixing open nebula
This commit is contained in:
parent
1c9bc68a66
commit
c5582c3092
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user