From d490f6fc7c6453822d0c30082f0a08a26228c5d6 Mon Sep 17 00:00:00 2001 From: Nicolas CHARLES Date: Tue, 2 Dec 2014 09:19:02 +0100 Subject: [PATCH] Fixes #5902: correct reporting on ssh technique on aix when service is already defined at boot --- .../systemSettings/remoteAccess/sshConfiguration/4.0/main.st | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/techniques/systemSettings/remoteAccess/sshConfiguration/4.0/main.st b/techniques/systemSettings/remoteAccess/sshConfiguration/4.0/main.st index 7988fd422..ddfe95387 100644 --- a/techniques/systemSettings/remoteAccess/sshConfiguration/4.0/main.st +++ b/techniques/systemSettings/remoteAccess/sshConfiguration/4.0/main.st @@ -85,8 +85,10 @@ bundle agent rudder_openssh_server_configuration(class_prefix, service_name, par aix:: # lssrc is clever, and kept in a cache the entry if the daemon is still running, so grepping # /etc/inittab instead, to be sure that service is defined at boot + # Adding scope namespace so that the class is available for the reporting also "${class_prefix}_activated_on_boot_kept" - expression => returnszero("/usr/bin/grep -q -E ^sshd: /etc/inittab", "useshell"); + expression => returnszero("/usr/bin/grep -q -E ^sshd: /etc/inittab", "useshell"), + scope => "namespace"; files: