fixing 500 error

This commit is contained in:
Levi 2017-06-11 12:59:57 -05:00
parent d7a38dffa2
commit 993039c020
1 changed files with 2 additions and 1 deletions

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))