]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: assert that DaemonIdentity has valid values
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 26 Jul 2023 17:26:48 +0000 (13:26 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Mon, 11 Sep 2023 19:23:04 +0000 (15:23 -0400)
Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/cephadmlib/daemon_identity.py

index 3a84ee425222f8df40240ef7f0afc792aa96a377..eced0edc85c29a792dfbf43f925583a10ae1a830 100644 (file)
@@ -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: