fixing 500 error

This commit is contained in:
Levi 2017-06-11 12:59:57 -05:00
parent d7a38dffa2
commit 993039c020

View file

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