fix: 1.3.6 simplified output and added object comment
This commit is contained in:
@@ -12,7 +12,7 @@ function Test-CustomerLockbox {
|
||||
|
||||
# Initialization code, if needed
|
||||
$recnum = "1.3.6"
|
||||
|
||||
Write-Verbose "Running Test-CustomerLockbox for $recnum..."
|
||||
# Conditions for 1.3.6 (L2) Ensure the customer lockbox feature is enabled (Automated)
|
||||
#
|
||||
# Validate test for a pass:
|
||||
@@ -33,8 +33,9 @@ function Test-CustomerLockbox {
|
||||
process {
|
||||
try {
|
||||
# Step: Retrieve the organization configuration (Condition C: Pass/Fail)
|
||||
# $customerLockboxEnabled Mock Object
|
||||
# $customerLockboxEnabled = $true
|
||||
$customerLockboxEnabled = Get-CISExoOutput -Rec $recnum
|
||||
|
||||
# Step: Prepare failure reasons and details based on compliance (Condition A, B, & C: Fail)
|
||||
$failureReasons = if (-not $customerLockboxEnabled) {
|
||||
"Customer lockbox feature is not enabled."
|
||||
|
||||
Reference in New Issue
Block a user