diff options
| author | Matthew Thode <mthode@mthode.org> | 2018-05-17 11:10:05 -0500 |
|---|---|---|
| committer | Matthew Thode <mthode@mthode.org> | 2018-05-17 11:11:55 -0500 |
| commit | a03661c4a835a16ce8f7bf226969dbae103c62c7 (patch) | |
| tree | 3624965d3db4c0065d1c70a38bd6108f6e7862db /ironic_python_agent/agent.py | |
| parent | de32d66ce3d633c44b85a42563906ac018fd410a (diff) | |
| download | ironic-python-agent-a03661c4a835a16ce8f7bf226969dbae103c62c7.tar.gz | |
write byte objects when using os.write
Change-Id: I184a9d0bf4a0ba0776d519b3a3b9ccd39151b4ae
Story: 2002052
Task: 19713
Diffstat (limited to 'ironic_python_agent/agent.py')
| -rw-r--r-- | ironic_python_agent/agent.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ironic_python_agent/agent.py b/ironic_python_agent/agent.py index 4ca6f7e4..819bb91c 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() |
