[BUG] TypeError in utils.network._openbsd_remotes_on #61966
Labels
Bug
broken, incorrect, or confusing behavior
bytes-vs-strings
py2 vs py3 bytes vs strings encode/decode errors
OpenBSD
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Description
When issuing a command to an unavailable minion, an exception is thrown after some time.
Setup
Salt master on OpenBSD
Steps to Reproduce the behavior
salt 'minion' test.ping
Expected behavior
Timeout.
Screenshots
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Additional context
The infringing code is found here.
subprocess.check_output
returns data as bytes by default, so the code should readlines = data.split(b"\n")
(edit: actually would need to decode the data first to avoid issues further down or take that into account there as well).Of course, this is not a breaking issue, more for the record. Thanks for your work on Salt!
The text was updated successfully, but these errors were encountered: