From: Ramana Raja Date: Wed, 27 Mar 2019 11:03:33 +0000 (+0530) Subject: ceph_volume_client: fix use of rados.WriteOpCtx X-Git-Tag: v15.0.0~44^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2e44ae45838fad4c5d8cbd518b9d4ca35bb0efff;p=ceph.git 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 --- 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)