From: Zack Cerza Date: Fri, 22 Jul 2022 17:46:53 +0000 (-0600) Subject: beanstalk: Print tube stats in JSON format X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=1cb9d71618f581dccad9d6accc3dfef861660390;p=teuthology.git beanstalk: Print tube stats in JSON format Signed-off-by: Zack Cerza --- diff --git a/teuthology/beanstalk.py b/teuthology/beanstalk.py index ff3afb6efb..41e2acedd1 100644 --- a/teuthology/beanstalk.py +++ b/teuthology/beanstalk.py @@ -1,4 +1,5 @@ import beanstalkc +import json import yaml import logging import pprint @@ -196,7 +197,7 @@ def main(args): # it is not needed for pausing tubes watch_tube(connection, machine_type) if status: - print(stats_tube(connection, machine_type)) + print(json.dumps(stats_tube(connection, machine_type))) elif pause_duration: pause_tube(connection, machine_type, pause_duration) elif delete: