File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def eprint(*args, **kwargs):
44
44
print (* args , file = sys .stderr , ** kwargs )
45
45
46
46
try :
47
- OSDS = json .loads (subprocess .getoutput ('ceph osd ls -f json | jq -r' ))
47
+ OSDS = json .loads (subprocess .getoutput ('ceph osd ls -f json | jq -r . ' ))
48
48
DF = json .loads (subprocess .getoutput ('ceph osd df -f json | jq -r .nodes' ))
49
49
except ValueError :
50
50
eprint ('Error loading OSD IDs' )
@@ -93,7 +93,7 @@ def rm_upmap_pg_items(pgid):
93
93
94
94
# discover remapped pgs
95
95
try :
96
- remapped_json = subprocess .getoutput ('ceph pg ls remapped -f json | jq -r' )
96
+ remapped_json = r'{}' . format ( subprocess .getoutput ('ceph pg ls remapped -f json | jq -r .' ) )
97
97
remapped = json .loads (remapped_json )
98
98
except ValueError :
99
99
eprint ('Error loading remapped pgs' )
@@ -108,7 +108,7 @@ def rm_upmap_pg_items(pgid):
108
108
sys .exit (0 )
109
109
110
110
# discover existing upmaps
111
- osd_dump_json = subprocess .getoutput ('ceph osd dump -f json | jq -r' )
111
+ osd_dump_json = subprocess .getoutput ('ceph osd dump -f json | jq -r . ' )
112
112
osd_dump = json .loads (osd_dump_json )
113
113
upmaps = osd_dump ['pg_upmap_items' ]
114
114
You can’t perform that action at this time.
0 commit comments