mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
qa: fix type error in stderr processing
Fixes: 422d736568
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
parent
02686e4cc8
commit
62777f653d
@ -466,11 +466,12 @@ print(_find_admin_socket("{client_name}"))
|
|||||||
try:
|
try:
|
||||||
p = self.client_remote.run(args=
|
p = self.client_remote.run(args=
|
||||||
['sudo', self._prefix + 'ceph', '--admin-daemon', asok_path] + args,
|
['sudo', self._prefix + 'ceph', '--admin-daemon', asok_path] + args,
|
||||||
stdout=StringIO(), stderr=StringIO(),
|
stdout=StringIO(), stderr=StringIO(), wait=False,
|
||||||
timeout=(15*60))
|
timeout=(15*60))
|
||||||
|
p.wait()
|
||||||
break
|
break
|
||||||
except CommandFailedError:
|
except CommandFailedError:
|
||||||
if "Connection refused" in stderr.getvalue():
|
if "connection refused" in p.stderr.getvalue().lower():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
return json.loads(p.stdout.getvalue().strip())
|
return json.loads(p.stdout.getvalue().strip())
|
||||||
|
Loading…
Reference in New Issue
Block a user