Commit a7e89670 authored by Alexander Efremkin's avatar Alexander Efremkin
Browse files

Fix sending commands to HMC too early

HMC sequence was too eager to execute, which sometimes prevented it from completing.
parent 69ee21bc
Pipeline #241916897 passed with stages
in 6 minutes and 2 seconds
......@@ -625,12 +625,17 @@ class HypervisorHmc(HypervisorBase):
# log messages
for msg in messages:
self._logger.debug("OS message: %s", msg)
# react to pattern with one command only
for msg in messages:
if pattern in msg:
for chunk in _string_to_chunks(cmd):
pattern, cmd = next(command_gen)
except StopIteration:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment