diff --git a/client-api/pvc-api.py b/client-api/pvc-api.py index b2d07c1b..81578acf 100755 --- a/client-api/pvc-api.py +++ b/client-api/pvc-api.py @@ -710,9 +710,9 @@ class API_Node_DomainState(Resource): id: Message """ if reqargs['state'] == 'flush': - return api_helper.node_flush(node, reqargs.get('wait', False)) + return api_helper.node_flush(node, strtobool(reqargs.get('wait', 'false'))) if reqargs['state'] == 'ready': - return api_helper.node_ready(node, reqargs.get('wait', False)) + return api_helper.node_ready(node, strtobool(reqargs.get('wait', 'false'))) abort(400) api.add_resource(API_Node_DomainState, '/node//domain-state') diff --git a/client-cli/cli_lib/node.py b/client-cli/cli_lib/node.py index ded77c63..7f63841b 100644 --- a/client-cli/cli_lib/node.py +++ b/client-cli/cli_lib/node.py @@ -56,7 +56,7 @@ def node_domain_state(config, node, action, wait): """ params={ 'state': action, - 'wait': wait + 'wait': str(wait).lower() } response = call_api(config, 'post', '/node/{node}/domain-state'.format(node=node), params=params)