Enable logging custom modules
This commit is contained in:
parent
35d6c90b14
commit
137b45c12c
2 changed files with 65 additions and 19 deletions
|
|
@ -301,12 +301,14 @@ class OpenNebulaManager():
|
|||
</CONTEXT>
|
||||
</TEMPLATE>
|
||||
"""
|
||||
vm_id = self.client.call(oca.VmTemplate.METHODS['instantiate'],
|
||||
template.id,
|
||||
'',
|
||||
True,
|
||||
vm_specs,
|
||||
False)
|
||||
try:
|
||||
vm_id = self.client.call(
|
||||
oca.VmTemplate.METHODS['instantiate'], template.id, '', True,
|
||||
vm_specs, False
|
||||
)
|
||||
except OpenNebulaException as err:
|
||||
logger.error("OpenNebulaException: {0}".format(err))
|
||||
return None
|
||||
|
||||
self.oneadmin_client.call(
|
||||
oca.VirtualMachine.METHODS['action'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue