Get the correct opennebula user id

This commit is contained in:
PCoder 2019-07-03 07:09:44 +05:30
parent 921d832f9e
commit 44921014a2

View file

@ -376,7 +376,7 @@ class OpenNebulaManager():
"""
return_value = self.oneadmin_client.call(
'user.update',
self.opennebula_user.id,
self.opennebula_user if type(self.opennebula_user) == int else self.opennebula_user.id,
'<CONTEXT><SSH_PUBLIC_KEY>%s</SSH_PUBLIC_KEY></CONTEXT>' % ssh_key,
update_type
)