From: Brad Hubbard Date: Tue, 31 Mar 2020 02:49:26 +0000 (+1000) Subject: qa/suites/rados/rest: Don't pass empty dict as data arg X-Git-Tag: v13.2.10~2^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=36917d7cf34e92c434a6cd4db5cccc4454f2641a;p=ceph.git 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) --- diff --git a/qa/workunits/rest/test_mgr_rest_api.py b/qa/workunits/rest/test_mgr_rest_api.py index 871f5709399..411757098f9 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)