]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/volumes: Address python breakage in python 2
authorShyamsundar Ranganathan <srangana@redhat.com>
Wed, 26 Aug 2020 23:22:09 +0000 (19:22 -0400)
committerShyamsundar Ranganathan <srangana@redhat.com>
Thu, 27 Aug 2020 19:42:58 +0000 (15:42 -0400)
Signed-off-by: Shyamsundar Ranganathan <srangana@redhat.com>
(cherry picked from commit 284dd3c4829f95b9618d98da49e59ec1c56dde61)

src/pybind/mgr/volumes/fs/operations/versions/subvolume_base.py

index ee86bdc85ca171c2e688acd821a07f4cdb21e6f8..f2cca47183c7fba0867b275a3eacd835e7a62f2d 100644 (file)
@@ -4,7 +4,6 @@ import uuid
 import errno
 import logging
 from hashlib import md5
-from typing import Dict, Union
 
 import cephfs
 
@@ -126,7 +125,7 @@ class SubvolumeBase(object):
 
     def get_attrs(self, pathname):
         # get subvolume attributes
-        attrs = {} # type: Dict[str, Union[int, str, None]]
+        attrs = {}
         stx = self.fs.statx(pathname,
                             cephfs.CEPH_STATX_UID | cephfs.CEPH_STATX_GID | cephfs.CEPH_STATX_MODE,
                             cephfs.AT_SYMLINK_NOFOLLOW)