Use platform path constant for SSSD log dir

The path to SSSD log directory is platform specific and should be in
ipaplatform module.

Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
Martin Basti 2016-03-08 16:26:23 +01:00
parent 0cb870e565
commit fb3a5d5a9c
2 changed files with 2 additions and 1 deletions

View File

@ -318,6 +318,7 @@ class BasePathNamespace(object):
TOMCAT_KRA_ARCHIVE_DIR = "/var/log/pki/pki-tomcat/kra/archive"
TOMCAT_KRA_SIGNEDAUDIT_DIR = "/var/log/pki/pki-tomcat/kra/signedAudit"
LOG_SECURE = "/var/log/secure"
VAR_LOG_SSSD_DIR = "/var/log/sssd"
NAMED_RUN = "/var/named/data/named.run"
VAR_OPENDNSSEC_DIR = "/var/opendnssec"
OPENDNSSEC_KASP_DB = "/var/opendnssec/kasp.db"

View File

@ -557,7 +557,7 @@ def setup_sssd_debugging(host):
paths.SSSD_CONF],
raiseonerr=False)
host.collect_log('/var/log/sssd/*')
host.collect_log(os.path.join(paths.VAR_LOG_SSSD_DIR, '*'))
# Clear the cache and restart SSSD
clear_sssd_cache(host)