From d5169ec70539342ad476c409500a9fc0a5a5b404 Mon Sep 17 00:00:00 2001 From: Vasu1105 Date: Fri, 3 Nov 2023 16:33:50 +0530 Subject: [PATCH] Rename enable-audit-log cli option to disable-audit-log Signed-off-by: Vasu1105 --- docs-chef-io/content/inspec/cli.md | 12 ++++++------ lib/inspec/base_cli.rb | 4 ++-- lib/inspec/config.rb | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs-chef-io/content/inspec/cli.md b/docs-chef-io/content/inspec/cli.md index 4f5d197ca..d78571a64 100644 --- a/docs-chef-io/content/inspec/cli.md +++ b/docs-chef-io/content/inspec/cli.md @@ -556,9 +556,9 @@ This subcommand has the following additional options: `--audit-log-location=AUDIT_LOG_LOCATION` : Audit log location to send diagnostic log messages to (default: '~/.inspec/logs/train-audit.log'). -`--enable-audit-log` -`--no-enable-audit-log` -: Enable audit logging. (default: true) +`--disable-audit-log` +`--no-disable-audit-log` +: Disable audit logging. (default: false) `--audit-log-size=N` : Set audit log file size in bytes.(default: 2097152) @@ -867,9 +867,9 @@ This subcommand has the following additional options: `--audit-log-location=AUDIT_LOG_LOCATION` : Audit log location to send diagnostic log messages to (default: '~/.inspec/logs/train-audit.log'). -`--enable-audit-log` -`--no-enable-audit-log` -: Enable audit logging. (default: true) +`--disable-audit-log` +`--no-disable-audit-log` +: Disable audit logging. (default: false) `--audit-log-size=N` : Set audit log file size in bytes.(default: 2097152) diff --git a/lib/inspec/base_cli.rb b/lib/inspec/base_cli.rb index ef273d85f..841b34f48 100644 --- a/lib/inspec/base_cli.rb +++ b/lib/inspec/base_cli.rb @@ -235,8 +235,8 @@ module Inspec option :audit_log_location, type: :string, desc: "Audit log location to send diagnostic log messages to. (default: '~/.inspec/logs/train-audit.log')" - option :enable_audit_log, type: :boolean, default: true, - desc: "Enable audit logging." + option :disable_audit_log, type: :boolean, default: false, + desc: "Disable audit logging." option :audit_log_size, type: :numeric, default: 2097152, desc: "Set audit log file size in bytes." diff --git a/lib/inspec/config.rb b/lib/inspec/config.rb index f7b75ce6e..fbed92dd9 100644 --- a/lib/inspec/config.rb +++ b/lib/inspec/config.rb @@ -29,7 +29,7 @@ module Inspec audit_log_size audit_log_frequency audit_log_location - enable_audit_log + disable_audit_log audit_log_app_name }.freeze