diff --git a/ironic_python_agent/agent.py b/ironic_python_agent/agent.py index 4ca6f7e4e..819bb91c8 100644 --- a/ironic_python_agent/agent.py +++ b/ironic_python_agent/agent.py @@ -146,13 +146,13 @@ class IronicPythonAgentHeartbeater(threading.Thread): self.max_delay) def force_heartbeat(self): - os.write(self.writer, 'b') + os.write(self.writer, b'b') def stop(self): """Stop the heartbeat thread.""" if self.writer is not None: LOG.info('stopping heartbeater') - os.write(self.writer, 'a') + os.write(self.writer, b'a') return self.join()