Skip to content

Commit

Permalink
Fix mismatched parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
kenchan committed Sep 19, 2019
1 parent 53bb806 commit 1e83c5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mackerel/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,16 @@ def get_hosts(self, **kwargs):
"""Get hosts.
:param service: Service name
:param roles: Service role
:param role: Service role
:param name: Host name
"""
uri = '/api/v0/hosts.json'
params = {}
if kwargs.get('service', None):
params['service'] = kwargs.get('service')

if kwargs.get('roles', None):
params['roles'] = kwargs.get('roles')
if kwargs.get('role', None):
params['role'] = kwargs.get('role')

if kwargs.get('name', None):
params['name'] = kwargs.get('name')
Expand Down

0 comments on commit 1e83c5f

Please sign in to comment.