Update exception message for nova service

The TimeoutException for waiters.wait_for_nova_service_state was not
passing the state variable to the exception message just the binary,
host and timeout. Added the missing state variable to the message.

Change-Id: I173d4101e112fae05249a14715303d84e7d802ea
This commit is contained in:
James Parker 2020-08-31 12:25:33 -04:00
parent 1718597200
commit 8946bbe786

View File

@ -31,5 +31,5 @@ def wait_for_nova_service_state(client, host, binary, state):
if timed_out:
raise lib_exc.TimeoutException(
'Service %s on host %s failed to reach state %s within '
'the required time (%s s)', binary, host, timeout)
'the required time (%s s)', binary, host, state, timeout)
service = client.list_services(host=host, binary=binary)['services'][0]