Skip to content

Commit

Permalink
Fix collect error on Solaris
Browse files Browse the repository at this point in the history
TypeError: a bytes-like object is required, not 'str'
  • Loading branch information
cgalibern committed Feb 17, 2021
1 parent 18bae3d commit ac5f182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opensvc/utilities/stats/collector/sunos.py
Expand Up @@ -51,7 +51,7 @@ def collect(node):
pr = 0

while out:
line = out
line = str(out)
line = line.rstrip("\n")

if "ZONEID" in line:
Expand Down Expand Up @@ -92,7 +92,7 @@ def collect(node):
out = p.stdout.readline()

while out:
line = out
line = str(out)
line = line.rstrip("\n")

if "id zone" in line and fi == 1:
Expand Down

0 comments on commit ac5f182

Please sign in to comment.