]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/ceph_volume_client: set the version
authorRamana Raja <rraja@redhat.com>
Mon, 18 Sep 2017 14:39:55 +0000 (20:09 +0530)
committerRamana Raja <rraja@redhat.com>
Fri, 29 Sep 2017 09:58:19 +0000 (15:28 +0530)
... of on-disk structures to be same as the class attribute 'version'
of the CephFSVolumeClient class.

Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit 8267c2ba09841095f20a8833c155185529e64f46)

src/pybind/ceph_volume_client.py

index 89722ec95e737470427dedf1546fc58e0c65b832..e4a7b184e403caa29c3486fdd9809d99095cb99d 100644 (file)
@@ -851,7 +851,7 @@ class CephFSVolumeClient(object):
         that encoded the metadata.
         """
         data['compat_version'] = 1
-        data['version'] = 1
+        data['version'] = self.version
         return self._metadata_set(self._auth_metadata_path(auth_id), data)
 
     def _volume_metadata_path(self, volume_path):
@@ -904,7 +904,7 @@ class CephFSVolumeClient(object):
         that encoded the metadata.
         """
         data['compat_version'] = 1
-        data['version'] = 1
+        data['version'] = self.version
         return self._metadata_set(self._volume_metadata_path(volume_path), data)
 
     def authorize(self, volume_path, auth_id, readonly=False, tenant_id=None):