From 7a96035481c76a385db8e587a2c135826830c66e Mon Sep 17 00:00:00 2001 From: Elia Oggian Date: Tue, 17 Sep 2024 18:47:30 +0200 Subject: [PATCH] Fix to ignore unquoted strings --- tools/upmap/upmap-remapped.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/upmap/upmap-remapped.py b/tools/upmap/upmap-remapped.py index af8f54aa..19c00cd4 100755 --- a/tools/upmap/upmap-remapped.py +++ b/tools/upmap/upmap-remapped.py @@ -108,7 +108,7 @@ def rm_upmap_pg_items(pgid): sys.exit(0) # discover existing upmaps -osd_dump_json = subprocess.getoutput('ceph osd dump -f json | jq -r') +osd_dump_json = subprocess.getoutput('ceph osd dump -f json | jq -r \'walk(if type == "object" then del(.score_acting, .score_stable) else . end)\'') osd_dump = json.loads(osd_dump_json) upmaps = osd_dump['pg_upmap_items']