From: John Mulligan Date: Wed, 26 Jul 2023 17:26:48 +0000 (-0400) Subject: cephadm: assert that DaemonIdentity has valid values X-Git-Tag: v19.0.0~479^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c2b877fc25324bdbe42dfd369483f8b4558a71f9;p=ceph.git cephadm: assert that DaemonIdentity has valid values Signed-off-by: John Mulligan --- diff --git a/src/cephadm/cephadmlib/daemon_identity.py b/src/cephadm/cephadmlib/daemon_identity.py index 3a84ee425222..eced0edc85c2 100644 --- a/src/cephadm/cephadmlib/daemon_identity.py +++ b/src/cephadm/cephadmlib/daemon_identity.py @@ -17,6 +17,9 @@ class DaemonIdentity: self._fsid = fsid self._daemon_type = daemon_type self._daemon_id = str(daemon_id) + assert self._fsid + assert self._daemon_type + assert self._daemon_id @property def fsid(self) -> str: