Work around bad RequestArgs handling

This commit is contained in:
Joshua Boniface 2020-03-03 16:48:20 -05:00
parent c02bc0b46a
commit 36588a3a81
1 changed files with 3 additions and 0 deletions

View File

@ -205,8 +205,11 @@ def net_dhcp_list(config, net, limit, only_static=False):
params = dict()
if limit:
params['limit'] = limit
if only_static:
params['static'] = True
else:
params['static'] = False
response = call_api(config, 'get', '/network/{net}/lease'.format(net=net), params=params)