mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
test/rgw: SystemObject.json_command no longer trims json output
this was a workaround for 'period commit' commands that used to write the "Sending period to new master zone" line to stdout Signed-off-by: Casey Bodley <cbodley@redhat.com>
This commit is contained in:
parent
e48a200762
commit
cebce38f1c
@ -72,8 +72,7 @@ class SystemObject:
|
||||
data and retcode """
|
||||
s, r = self.command(cluster, cmd, args or [], **kwargs)
|
||||
if r == 0:
|
||||
output = s[s.find('{'):] # trim extra output before json
|
||||
data = json.loads(output)
|
||||
data = json.loads(s)
|
||||
self.load_from_json(data)
|
||||
self.data = data
|
||||
return self.data, r
|
||||
|
Loading…
Reference in New Issue
Block a user