baremetal: correct the default timeout in Node.set_provision_state

It should be None, which allows the client to wait until the server
side timeout. True is probably cast to 1, which is incorrect.

Change-Id: I6ae42b44b5460fed5291584576bb9eb7bcdfecb4
This commit is contained in:
Dmitry Tantsur
2018-07-20 13:43:11 +02:00
parent 4600f1ec7b
commit 031acd9991

View File

@@ -122,7 +122,7 @@ class Node(resource.Resource):
def set_provision_state(self, session, target, config_drive=None, def set_provision_state(self, session, target, config_drive=None,
clean_steps=None, rescue_password=None, clean_steps=None, rescue_password=None,
wait=False, timeout=True): wait=False, timeout=None):
"""Run an action modifying this node's provision state. """Run an action modifying this node's provision state.
This call is asynchronous, it will return success as soon as the Bare This call is asynchronous, it will return success as soon as the Bare