From: Ramana Raja Date: Mon, 18 Sep 2017 14:39:55 +0000 (+0530) Subject: pybind/ceph_volume_client: set the version X-Git-Tag: v12.2.2~166^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dd23023329b2382afef23ee02d7ef9b14baaf07b;p=ceph.git 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) --- diff --git a/src/pybind/ceph_volume_client.py b/src/pybind/ceph_volume_client.py index 89722ec95e7..e4a7b184e40 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):