From: Michael Fritch Date: Wed, 3 Jun 2020 20:52:44 +0000 (-0600) Subject: python-common: fix pytest failure X-Git-Tag: v16.1.0~2127^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=30a9c2f51747deb4861d1b6eaba667585e6957d0;p=ceph.git python-common: fix pytest failure 523: error: Unsupported operand types for + ("str" and "None") 523: note: Right operand is of type "Optional[str]" Signed-off-by: Michael Fritch --- diff --git a/src/python-common/ceph/deployment/service_spec.py b/src/python-common/ceph/deployment/service_spec.py index 033fe2531da7..362dd1bfeb51 100644 --- a/src/python-common/ceph/deployment/service_spec.py +++ b/src/python-common/ceph/deployment/service_spec.py @@ -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 + '/'