From 8999946a6f784afe00736b91cf9cb4b3a770b78b Mon Sep 17 00:00:00 2001 From: huali027 <44796653+huali027@users.noreply.github.com> Date: Tue, 19 Apr 2022 10:08:47 +0800 Subject: [PATCH] Only collect "*.conf" for nginx (#3380) * Some unused files have syntax error, as a result, it won't be hit even there is a hit for the used files. Signed-off-by: Huanhuan Li --- insights/specs/default.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/insights/specs/default.py b/insights/specs/default.py index 49cba52e53..35013d6070 100644 --- a/insights/specs/default.py +++ b/insights/specs/default.py @@ -475,9 +475,9 @@ def md5chk_file_list(broker): nfs_exports = simple_file("/etc/exports") nfs_exports_d = glob_file("/etc/exports.d/*.exports") nginx_conf = glob_file([ - "/etc/nginx/*.conf", "/etc/nginx/conf.d/*", "/etc/nginx/default.d/*", - "/opt/rh/nginx*/root/etc/nginx/*.conf", "/opt/rh/nginx*/root/etc/nginx/conf.d/*", "/opt/rh/nginx*/root/etc/nginx/default.d/*", - "/etc/opt/rh/rh-nginx*/nginx/*.conf", "/etc/opt/rh/rh-nginx*/nginx/conf.d/*", "/etc/opt/rh/rh-nginx*/nginx/default.d/*" + "/etc/nginx/*.conf", "/etc/nginx/conf.d/*.conf", "/etc/nginx/default.d/*.conf", + "/opt/rh/nginx*/root/etc/nginx/*.conf", "/opt/rh/nginx*/root/etc/nginx/conf.d/*.conf", "/opt/rh/nginx*/root/etc/nginx/default.d/*.conf", + "/etc/opt/rh/rh-nginx*/nginx/*.conf", "/etc/opt/rh/rh-nginx*/nginx/conf.d/*.conf", "/etc/opt/rh/rh-nginx*/nginx/default.d/*.conf" ]) nginx_ssl_cert_enddate = foreach_execute(ssl_certificate.nginx_ssl_certificate_files, "/usr/bin/openssl x509 -in %s -enddate -noout") nmcli_conn_show = simple_command("/usr/bin/nmcli conn show")