]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
nautilus: mgr/volumes: convert uid and gid to integer type 36833/head
authorRamana Raja <rraja@redhat.com>
Thu, 27 Aug 2020 11:19:50 +0000 (16:49 +0530)
committerShyamsundar Ranganathan <srangana@redhat.com>
Thu, 27 Aug 2020 19:42:58 +0000 (15:42 -0400)
... before chown in py2 environments.

Introduced-by: 0eaf9b0bd2786762160b83edc52d979f5aad233c
Signed-off-by: Ramana Raja <rraja@redhat.com>
src/pybind/mgr/volumes/fs/operations/versions/subvolume_base.py

index f2cca47183c7fba0867b275a3eacd835e7a62f2d..851ee0849ac88eb1b8e8ce53508e6859934bdfe1 100644 (file)
@@ -203,6 +203,7 @@ class SubvolumeBase(object):
             uid = self.group.uid
         else:
             try:
+                uid = int(uid)
                 if uid < 0:
                     raise ValueError
             except ValueError:
@@ -213,6 +214,7 @@ class SubvolumeBase(object):
             gid = self.group.gid
         else:
             try:
+                gid = int(gid)
                 if gid < 0:
                     raise ValueError
             except ValueError: