From c824dc122244b8a74d9f5ef1397af55bec32542d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mich=C3=A9e=20Lengronne?= Date: Tue, 19 Jan 2021 13:06:09 +0100 Subject: [PATCH] nginx parsed config as attribute MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michée Lengronne --- controls/nginx_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controls/nginx_spec.rb b/controls/nginx_spec.rb index fe458fb..c427343 100644 --- a/controls/nginx_spec.rb +++ b/controls/nginx_spec.rb @@ -96,7 +96,7 @@ nginx_conf = File.join(nginx_path, 'nginx.conf') nginx_confd = File.join(nginx_path, 'conf.d') nginx_enabled = File.join(nginx_path, 'sites-enabled') -nginx_parsed_config = command('nginx -T').stdout +nginx_parsed_config = attribute('nginx_parsed_config', value: command('nginx -T').stdout, description: 'Default nginx test command') options = { assignment_regex: /^\s*([^:]*?)\s*\ \s*(.*?)\s*;$/