]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_volume_client: fix partial auth recovery
authorRamana Raja <rraja@redhat.com>
Tue, 4 Oct 2016 08:25:46 +0000 (13:55 +0530)
committerRamana Raja <rraja@redhat.com>
Mon, 16 Jan 2017 08:24:37 +0000 (13:54 +0530)
... for volumes whose group_id is None.

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

src/pybind/ceph_volume_client.py

index 2afc95f9c71cabd2569d7952aa28be7e6e1ea63b..d02b7487dcffab7df3aea4e598551a31661b0d34 100644 (file)
@@ -329,6 +329,7 @@ class CephFSVolumeClient(object):
                 continue
 
             (group_id, volume_id) = volume.split('/')
+            group_id = group_id if group_id is not 'None' else None
             volume_path = VolumePath(group_id, volume_id)
             access_level = volume_data['access_level']