From 2fec4e38f32c6d86331bf7d58457e3b3a64fa69c Mon Sep 17 00:00:00 2001 From: Nick Barrett Date: Sun, 23 Jan 2022 15:18:48 +0000 Subject: [PATCH] Fix docstrings in selinux facts. --- pyinfra/facts/selinux.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyinfra/facts/selinux.py b/pyinfra/facts/selinux.py index b4a678919..e45c6ed5f 100644 --- a/pyinfra/facts/selinux.py +++ b/pyinfra/facts/selinux.py @@ -6,6 +6,7 @@ class FileContext(FactBase): Returns structured SELinux file context data for a specified file. .. code:: python + { 'user': 'system_u', 'role': 'object_r', @@ -30,9 +31,6 @@ def process(self, output): class SEBoolean(FactBase): ''' Returns the on/off status of a SELinux Boolean. - - .. code:: python - host.get_fact(SEBoolean, "httpd_can_network_connect") -> "off" ''' requires_command = 'getsebool'