From 2e44ae45838fad4c5d8cbd518b9d4ca35bb0efff Mon Sep 17 00:00:00 2001 From: Ramana Raja Date: Wed, 27 Mar 2019 16:33:33 +0530 Subject: [PATCH] ceph_volume_client: fix use of rados.WriteOpCtx Class WriteOpCtx doesn't take in any arguments during instantiation. Fixes: http://tracker.ceph.com/issues/38946 Signed-off-by: Ramana Raja --- src/pybind/ceph_volume_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/ceph_volume_client.py b/src/pybind/ceph_volume_client.py index 9a6320493fe..8699858141d 100644 --- a/src/pybind/ceph_volume_client.py +++ b/src/pybind/ceph_volume_client.py @@ -1477,7 +1477,7 @@ class CephFSVolumeClient(object): raise CephFSVolumeClientError(msg) try: - with rados.WriteOpCtx(ioctx) as wop: + with rados.WriteOpCtx() as wop: if version is not None: wop.assert_version(version) wop.write_full(data) -- 2.39.5