diff --git a/insights/parsers/config_file_perms.py b/insights/parsers/config_file_perms.py index 004b56bde..16baa5049 100644 --- a/insights/parsers/config_file_perms.py +++ b/insights/parsers/config_file_perms.py @@ -18,10 +18,15 @@ from insights.core.plugins import parser from insights.specs import Specs from insights.util.file_permissions import FilePermissions +from insights.util import deprecated class FilePermissionsParser(CommandParser, FilePermissions): """ + .. warning:: + This parser is deprecated, please use + :py:class:`insights.parsers.ls.LSlHFiles` instead. + Base class for ``SshdConfigPerms``, ``Grub1ConfigPerms`` and ``Grub2ConfigPerms`` classes. Attributes: @@ -29,6 +34,9 @@ class FilePermissionsParser(CommandParser, FilePermissions): """ def __init__(self, context): + deprecated( + FilePermissionsParser, "Please use insights.parsers.ls.LSlHFiles instead.", "3.7.0" + ) self.line = "" CommandParser.__init__(self, context) FilePermissions.__init__(self, self.line) @@ -41,6 +49,10 @@ def parse_content(self, content): @parser(Specs.sshd_config_perms) class SshdConfigPerms(FilePermissionsParser): """ + .. warning:: + This parser is deprecated, please use + :py:class:`insights.parsers.ls.LSlHFiles` instead. + Class for parsing ``/bin/ls -lH /etc/ssh/sshd_config`` command. Sample output of this command is:: @@ -61,6 +73,10 @@ def __init__(self, context): @parser(Specs.grub1_config_perms) class Grub1ConfigPerms(FilePermissionsParser): """ + .. warning:: + This parser is deprecated, please use + :py:class:`insights.parsers.ls.LSlHFiles` instead. + Class for parsing ``/bin/ls -lH /boot/grub/grub.conf`` command. Sample output of this command is:: @@ -81,6 +97,10 @@ def __init__(self, context): @parser(Specs.grub_config_perms) class Grub2ConfigPerms(FilePermissionsParser): """ + .. warning:: + This parser is deprecated, please use + :py:class:`insights.parsers.ls.LSlHFiles` instead. + Class for parsing ``/bin/ls -lH /boot/grub2/grub.cfg`` command. Sample output of this command is::