Return false if wait is not set

This commit is contained in:
Joshua Boniface 2020-01-18 23:12:38 -05:00
parent 99b220b051
commit b615a27e98
1 changed files with 2 additions and 2 deletions

View File

@ -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/<node>/domain-state')