From dd23023329b2382afef23ee02d7ef9b14baaf07b Mon Sep 17 00:00:00 2001 From: Ramana Raja Date: Mon, 18 Sep 2017 20:09:55 +0530 Subject: [PATCH] pybind/ceph_volume_client: set the version ... of on-disk structures to be same as the class attribute 'version' of the CephFSVolumeClient class. Signed-off-by: Ramana Raja (cherry picked from commit 8267c2ba09841095f20a8833c155185529e64f46) --- src/pybind/ceph_volume_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/ceph_volume_client.py b/src/pybind/ceph_volume_client.py index 89722ec95e737..e4a7b184e403c 100644 --- a/src/pybind/ceph_volume_client.py +++ b/src/pybind/ceph_volume_client.py @@ -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): -- 2.39.5