]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_volume_client: fix use of rados.WriteOpCtx
authorRamana Raja <rraja@redhat.com>
Wed, 27 Mar 2019 11:03:33 +0000 (16:33 +0530)
committerRamana Raja <rraja@redhat.com>
Wed, 27 Mar 2019 11:32:24 +0000 (17:02 +0530)
Class WriteOpCtx doesn't take in any arguments during instantiation.

Fixes: http://tracker.ceph.com/issues/38946
Signed-off-by: Ramana Raja <rraja@redhat.com>
src/pybind/ceph_volume_client.py

index 9a6320493fe825f80c08770d017673396133627a..8699858141d04a022603a96f3b464d8d731e649f 100644 (file)
@@ -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)