Skip to content

Commit 323a45a

Browse files
committed
More Table Caption fixes
1 parent 7f224ce commit 323a45a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Src/Private/Get-AbrOntapSecuritySnapLockVollAttr.ps1

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,19 @@ function Get-AbrOntapSecuritySnapLockVollAttr {
4747
'Default Retention Period' = $SnapLockVolAttr.DefaultRetentionPeriod
4848
'Litigation Count' = $SnapLockVolAttr.LitigationCount
4949
}
50-
$OutObj += [pscustomobject]$inobj
51-
}
52-
}
50+
$OutObj = [pscustomobject]$inobj
5351

54-
$TableParams = @{
55-
Name = "Snaplock Volume Attributes - $($ClusterInfo.ClusterName)"
56-
List = $true
57-
ColumnWidths = 40, 60
58-
}
59-
if ($Report.ShowTableCaptions) {
60-
$TableParams['Caption'] = "- $($TableParams.Name)"
52+
$TableParams = @{
53+
Name = "Snaplock Volume Attributes - $($vol.Name)"
54+
List = $true
55+
ColumnWidths = 40, 60
56+
}
57+
if ($Report.ShowTableCaptions) {
58+
$TableParams['Caption'] = "- $($TableParams.Name)"
59+
}
60+
$OutObj | Table @TableParams
61+
}
6162
}
62-
$OutObj | Table @TableParams
6363
}
6464
}
6565

0 commit comments

Comments
 (0)