We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 860d005 commit 010f7ceCopy full SHA for 010f7ce
tools/jmxutils.py
@@ -216,11 +216,11 @@ def start(self):
216
tries = 3
217
for i in range(tries):
218
try:
219
- subprocess.check_output(args, stderr=subprocess.STDOUT, text=True)
+ subprocess.check_output(args, stderr=subprocess.STDOUT)
220
logger.info("Jolokia successful on try %s" % i )
221
return
222
except subprocess.CalledProcessError as exc:
223
- if 'Jolokia is already attached' in exc.output:
+ if 'Jolokia is already attached'.encode('utf-8') in exc.output:
224
logger.info("Jolokia reports being attached on try %s, returning successfully" % i)
225
return;
226
if i < tries - 1:
0 commit comments