Commit 958f99b8 authored by Andrii Salnikov's avatar Andrii Salnikov
Browse files

one more decode for python3 (affects stand-alone arcctl test-ca)

parent 84bba905
......@@ -66,7 +66,7 @@ class TestCAControl(ComponentControl):
# try to get it from hostname -f
hostname_f = subprocess.Popen(['hostname', '-f'], stdout=subprocess.PIPE)
self.hostname = hostname_f.stdout.readline().strip()
self.hostname = hostname_f.stdout.readline().decode().strip()
self.logger.debug('Using hostname from \'hostname -f\': %s', self.hostname)
except OSError:
# fallback
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