From 36588a3a810fe7c45be507e3e6681ed250be0b47 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 3 Mar 2020 16:48:20 -0500 Subject: [PATCH] Work around bad RequestArgs handling --- client-cli/cli_lib/network.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client-cli/cli_lib/network.py b/client-cli/cli_lib/network.py index 37a7589e..fa85dd1d 100644 --- a/client-cli/cli_lib/network.py +++ b/client-cli/cli_lib/network.py @@ -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)