]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
python-common: fix pytest failure
authorMichael Fritch <mfritch@suse.com>
Wed, 3 Jun 2020 20:52:44 +0000 (14:52 -0600)
committerSebastian Wagner <sebastian.wagner@suse.com>
Mon, 8 Jun 2020 11:52:24 +0000 (13:52 +0200)
523: error: Unsupported operand types for + ("str" and "None")
523: note: Right operand is of type "Optional[str]"

Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 30a9c2f51747deb4861d1b6eaba667585e6957d0)

src/python-common/ceph/deployment/service_spec.py

index 033fe2531da7def00fb36758bf03bcc96c461c1d..362dd1bfeb5169957913de6926a1bb2a3d805fd0 100644 (file)
@@ -521,6 +521,7 @@ class NFSServiceSpec(ServiceSpec):
 
     def rados_config_location(self):
         # type: () -> str
+        assert self.pool
         url = 'rados://' + self.pool + '/'
         if self.namespace:
             url += self.namespace + '/'