]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm:add missing kernel_security property
authorPaul Cuzner <pcuzner@redhat.com>
Wed, 27 Jan 2021 20:40:58 +0000 (09:40 +1300)
committerSebastian Wagner <sebastian.wagner@suse.com>
Fri, 29 Jan 2021 12:42:38 +0000 (13:42 +0100)
The propery decorator had gone missing which meant
the dump of host facts was missing the kernel security
(LSM) settings. This patch just adds the @property
decorator back

Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
(cherry picked from commit 1bc953cfbfe015d3eccf9ead002b9eb0253a6825)

src/cephadm/cephadm

index 7e8641eecfeb07b368ed54ac9e5822d5cc611db5..97f60b03a89fe0c3a3cd77ab7b38fdebeb167b3b 100755 (executable)
@@ -6125,6 +6125,7 @@ class HostFacts():
         up_secs, _ = raw_time.split()
         return float(up_secs)
 
+    @property
     def kernel_security(self):
         # type: () -> Optional[Dict[str, str]]
         """Determine the security features enabled in the kernel - SELinux, AppArmor"""