Skip to content

Commit

Permalink
Merge pull request #51 from quantmind/master
Browse files Browse the repository at this point in the history
Release 0.5.4
  • Loading branch information
lsbardel authored Feb 26, 2019
2 parents a3a7937 + c269fe8 commit d21e103
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kong/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Asynchronous Kong client"""

__version__ = '0.5.3'
__version__ = '0.5.4'
6 changes: 3 additions & 3 deletions kong/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def plugins(self):


async def consumer_id_from_username(cli, params):
if 'consumer.id' in params:
c = await cli.consumers.get(params['consumer.id'])
params['consumer.id'] = c['id']
if 'id' in (params.get('consumer') or {}):
c = await cli.consumers.get(params['consumer']['id'])
params['consumer']['id'] = c['id']
return params


Expand Down

0 comments on commit d21e103

Please sign in to comment.