]> git.proxmox.com Git - ceph.git/blobdiff - ceph/qa/workunits/rest/test_mgr_rest_api.py
import 15.2.2 octopus source
[ceph.git] / ceph / qa / workunits / rest / test_mgr_rest_api.py
index 1ed6c757efcd8b2a0da26e2c9b5f632083a964e3..f8158af25314b6a829f6dfa35b298c09dd43e253 100755 (executable)
@@ -85,7 +85,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)