mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Clean it up
This commit is contained in:
parent
5edabfd271
commit
0b6977335e
1 changed files with 3 additions and 6 deletions
|
@ -708,12 +708,9 @@ def user_get(user_id=None, name=None, profile=None, **connection_args):
|
|||
try:
|
||||
user = kstone.users.get(user_id)
|
||||
except keystoneclient.exceptions.NotFound:
|
||||
log.error(
|
||||
'Could not find user \'{0}\''.format(
|
||||
user_id
|
||||
)
|
||||
)
|
||||
return {'Error': 'Could not find user \'{0}\''.format(user_id)}
|
||||
msg = 'Could not find user \'{0}\''.format(user_id)
|
||||
log.error(msg)
|
||||
return {'Error': msg}
|
||||
|
||||
ret[user.name] = {'id': user.id,
|
||||
'name': user.name,
|
||||
|
|
Loading…
Add table
Reference in a new issue