From b615a27e989850a1cd5d1bd29abb9b34f6cb9969 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 18 Jan 2020 23:12:38 -0500 Subject: [PATCH] Return false if wait is not set --- client-api/pvc-api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client-api/pvc-api.py b/client-api/pvc-api.py index 47000230..68a1384d 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', None)) + return api_helper.node_flush(node, reqargs.get('wait', False)) if reqargs['state'] == 'ready': - return api_helper.node_ready(node, reqargs.get('wait', None)) + return api_helper.node_ready(node, reqargs.get('wait', False)) abort(400) api.add_resource(API_Node_DomainState, '/node//domain-state')