client/tools/rhncfg/config_common/file_utils.py | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 6704e6716beec1dd4c87795c6dcb454d242839d0 Author: Michael Mraka michael.mraka@redhat.com Date: Thu Aug 18 10:51:34 2011 +0200
731284 - is_selinux_enabled is not defined on RHEL4
fixing Traceback (most recent call last): File "/usr/sbin/rhn_check", line 345, in ? handle_action(action) File "/usr/sbin/rhn_check", line 218, in handle_action (status, message, data) = run_action(method, params) File "/usr/sbin/rhn_check", line 174, in run_action (status, message, data) = do_call(method, params) File "/usr/sbin/rhn_check", line 91, in do_call retval = apply(method, params) File "/usr/share/rhn/actions/configfiles.py", line 330, in diff diff = fp.diff(file) File "/usr/share/rhn/config_common/file_utils.py", line 105, in diff if not is_selinux_enabled(): NameError: global name 'is_selinux_enabled' is not defined
diff --git a/client/tools/rhncfg/config_common/file_utils.py b/client/tools/rhncfg/config_common/file_utils.py index 007fdbe..70563e6 100644 --- a/client/tools/rhncfg/config_common/file_utils.py +++ b/client/tools/rhncfg/config_common/file_utils.py @@ -24,6 +24,8 @@ except: # on rhel4 we do not support selinux def lgetfilecon(path): return [0, ''] + def is_selinux_enabled(): + return 0
from config_common import utils
spacewalk-commits@lists.fedorahosted.org