From 36917d7cf34e92c434a6cd4db5cccc4454f2641a Mon Sep 17 00:00:00 2001 From: Brad Hubbard Date: Tue, 31 Mar 2020 12:49:26 +1000 Subject: [PATCH] qa/suites/rados/rest: Don't pass empty dict as data arg Passing an empty 'args' dict as a data argument when calling requests.get somehow confuses the transaction, causing it to fail. Pass 'None' instead. Fixes: https://tracker.ceph.com/issues/43720 Signed-off-by: Brad Hubbard (cherry picked from commit e20e6fc3295da836fb5f098d46d6190ab28195d5) --- qa/workunits/rest/test_mgr_rest_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/workunits/rest/test_mgr_rest_api.py b/qa/workunits/rest/test_mgr_rest_api.py index 871f5709399b7..411757098f9e2 100755 --- a/qa/workunits/rest/test_mgr_rest_api.py +++ b/qa/workunits/rest/test_mgr_rest_api.py @@ -84,7 +84,7 @@ for method, endpoint, args in screenplay: print("URL = " + url) request = getattr(requests, method)( url, - data=json.dumps(args), + data=json.dumps(args) if args else None, headers=headers, verify=False, auth=auth) -- 2.39.5