aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2020-08-28 09:25:03 -0400
committerJake Hunsaker <jhunsake@redhat.com>2020-08-31 13:34:30 -0400
commitba343acb9ad7edf81ec1fdde485ab67f63b96c6a (patch)
treec8457adc00b9dfdab892dbaf6c6cef229e9f298e
parent88dc5f9d0af635a95fcda366299d3e40d00a0680 (diff)
downloadsos-ba343acb9ad7edf81ec1fdde485ab67f63b96c6a.tar.gz
[suse] Update policy enablement check
Updates the policy's enablement check for the presence of /etc/SUSE-brand instead of /etc/SuSE-release. Closes: #2217 Resolves: #2219 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/policies/suse.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/sos/policies/suse.py b/sos/policies/suse.py
index 9418ead4..8ef39055 100644
--- a/sos/policies/suse.py
+++ b/sos/policies/suse.py
@@ -98,9 +98,11 @@ No changes will be made to system configuration.
%(vendor_text)s
""")
- def __init__(self, sysroot=None, init=None, probe_runtime=True):
+ def __init__(self, sysroot=None, init=None, probe_runtime=True,
+ remote_exec=None):
super(OpenSuSEPolicy, self).__init__(sysroot=sysroot, init=init,
- probe_runtime=probe_runtime)
+ probe_runtime=probe_runtime,
+ remote_exec=remote_exec)
@classmethod
def check(cls, remote):
@@ -110,4 +112,4 @@ No changes will be made to system configuration.
if remote:
return cls.distro in remote
- return (os.path.isfile('/etc/SuSE-release'))
+ return os.path.isfile('/etc/SUSE-brand')