Merge pull request #328 from levivm/develop

fixing 500 error
This commit is contained in:
Levi Velázquez 2017-06-11 13:00:22 -05:00 committed by GitHub
commit ca2a10645d

View file

@ -501,7 +501,8 @@ class OpenNebulaManager():
public_key = old_key.replace(public_key, '')
except AttributeError:
raise KeyDoesNotExistsError()
return False
#raise KeyDoesNotExistsError()
self.oneadmin_client.call('user.update', open_user.id,
'<CONTEXT><SSH_PUBLIC_KEY>{key}</SSH_PUBLIC_KEY></CONTEXT>'.format(key=public_key))