]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
python-common: fix pytest failure
authorMichael Fritch <mfritch@suse.com>
Wed, 3 Jun 2020 20:52:44 +0000 (14:52 -0600)
committerMichael Fritch <mfritch@suse.com>
Wed, 3 Jun 2020 22:37:12 +0000 (16:37 -0600)
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>
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 + '/'