From ace4195d1b655dee39293cc23e1f2142312a9361 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 --- 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*;$/