Commit 07774038 authored by Stavros Sachtouris's avatar Stavros Sachtouris

Show the correct name when switching kamaki users

Fixes grnet/kamaki#66
parent 59abec6b
......@@ -14,6 +14,8 @@ Bug fixes
* Fix bug of incorrectly suppressed errors in "kamaki network create"
[grnet/kamaki#56]
* Set a default logger to LoggedAstakosClient [grnet/kamaki#58]
* Show the correct name when switching kamaki users
[grnet/kamaki#66]
v0.13rc4
========
......
......@@ -341,9 +341,9 @@ class user_select(_AstakosInit):
'No user with uuid %s in the cached session list' % uuid,
details=[
'To see all cached session users:', ' kamaki user list'])
name = self.astakos.user_info()['name'] or '<USER>'
if self.astakos.token != first_token:
self.astakos.token = first_token
name = self.astakos.user_info()['name'] or '<USER>'
self.error('User %s with id %s is now the current session user' % (
name, uuid))
if self.ask_user(
......@@ -356,6 +356,7 @@ class user_select(_AstakosInit):
self['config'].write()
self.error('%s is now the default user' % name)
else:
name = self.astakos.user_info()['name'] or '<USER>'
self.error('User %s is already the selected session user' % name)
def main(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment