From ef17a6dfc7adc8878bdaa10f2b74f82b69e77902 Mon Sep 17 00:00:00 2001 From: Ramana Raja Date: Thu, 27 Aug 2020 16:49:50 +0530 Subject: [PATCH] nautilus: mgr/volumes: convert uid and gid to integer type ... before chown in py2 environments. Introduced-by: 0eaf9b0bd2786762160b83edc52d979f5aad233c Signed-off-by: Ramana Raja --- src/pybind/mgr/volumes/fs/operations/versions/subvolume_base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pybind/mgr/volumes/fs/operations/versions/subvolume_base.py b/src/pybind/mgr/volumes/fs/operations/versions/subvolume_base.py index f2cca47183c7f..851ee0849ac88 100644 --- a/src/pybind/mgr/volumes/fs/operations/versions/subvolume_base.py +++ b/src/pybind/mgr/volumes/fs/operations/versions/subvolume_base.py @@ -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: -- 2.39.5