mirror of
https://github.com/ceph/ceph
synced 2025-01-19 17:41:39 +00:00
Merge pull request #30654 from ajarr/fix-42096
mgr/volumes: fix incorrect snapshot path creation Reviewed-by: Jos Collin <jcollin@redhat.com>
This commit is contained in:
commit
b154d4f87d
@ -90,13 +90,13 @@ class SubvolumeSpec(object):
|
||||
"""
|
||||
return the subvolume snapshot path for a given snapshot name
|
||||
"""
|
||||
return os.path.join(self.subvolume_path, snapdir, snapname)
|
||||
return os.path.join(self.subvolume_path, snapdir.encode('utf-8'), snapname.encode('utf-8'))
|
||||
|
||||
def make_group_snap_path(self, snapdir, snapname):
|
||||
"""
|
||||
return the group snapshot path for a given snapshot name
|
||||
"""
|
||||
return os.path.join(self.group_path, snapdir, snapname)
|
||||
return os.path.join(self.group_path, snapdir.encode('utf-8'), snapname.encode('utf-8'))
|
||||
|
||||
def __str__(self):
|
||||
return "{0}/{1}".format(self.groupid, self.subvolumeid)
|
||||
|
Loading…
Reference in New Issue
Block a user