Skip to content

Commit 7f224ce

Browse files
committed
Fix for Removing caption from table message also remove uneeded paragraph section
1 parent 2634a2b commit 7f224ce

File tree

85 files changed

+339
-480
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+339
-480
lines changed

Src/Private/Get-AbrOntapClusterASUP.ps1

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapClusterASUP {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.5.0
8+
Version: 0.6.2
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -25,28 +25,31 @@ function Get-AbrOntapClusterASUP {
2525
process {
2626
$AutoSupport = Get-NcAutoSupportConfig -Controller $Array
2727
if ($AutoSupport) {
28-
$AutoSupportSummary = foreach ($NodesAUTO in $AutoSupport) {
29-
[PSCustomObject] @{
28+
$Outobj = @()
29+
foreach ($NodesAUTO in $AutoSupport) {
30+
$Inobj = [ordered] @{
3031
'Node Name' = $NodesAUTO.NodeName
3132
'Protocol' = $NodesAUTO.Transport
3233
'Enabled' = ConvertTo-TextYN $NodesAUTO.IsEnabled
3334
'Last Time Stamp' = $NodesAUTO.LastTimestampDT
3435
'Last Subject' = $NodesAUTO.LastSubject
3536
}
36-
}
37-
if ($Healthcheck.Cluster.AutoSupport) {
38-
$AutoSupportSummary | Where-Object { $_.'Enabled' -like 'No' } | Set-Style -Style Warning -Property 'Enabled'
39-
}
37+
$Outobj = [PSCustomObject]$Inobj
4038

41-
$TableParams = @{
42-
Name = "Cluster AutoSupport Status - $($ClusterInfo.ClusterName)"
43-
List = $true
44-
ColumnWidths = 25, 75
45-
}
46-
if ($Report.ShowTableCaptions) {
47-
$TableParams['Caption'] = "- $($TableParams.Name)"
39+
if ($Healthcheck.Cluster.AutoSupport) {
40+
$Outobj | Where-Object { $_.'Enabled' -like 'No' } | Set-Style -Style Warning -Property 'Enabled'
41+
}
42+
43+
$TableParams = @{
44+
Name = "Cluster AutoSupport Status - $($NodesAUTO.NodeName)"
45+
List = $true
46+
ColumnWidths = 25, 75
47+
}
48+
if ($Report.ShowTableCaptions) {
49+
$TableParams['Caption'] = "- $($TableParams.Name)"
50+
}
51+
$Outobj | Table @TableParams
4852
}
49-
$AutoSupportSummary | Table @TableParams
5053
}
5154
}
5255

Src/Private/Get-AbrOntapClusterLicense.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapClusterLicense {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.5.0
8+
Version: 0.6.2
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -26,8 +26,6 @@ function Get-AbrOntapClusterLicense {
2626
$Nodes = Get-NcNode -Controller $Array
2727
foreach ($Node in $Nodes) {
2828
Section -Style Heading3 "$Node License Usage" {
29-
Paragraph "The following section provides per node installed licenses on $($ClusterInfo.ClusterName)."
30-
BlankLine
3129
$License = Get-NcLicense -Owner $Node -Controller $Array
3230
if ($License) {
3331
$LicenseSummary = foreach ($Licenses in $License) {

Src/Private/Get-AbrOntapEfficiencyAggr.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapEfficiencyAggr {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.5.0
8+
Version: 0.6.2
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -40,7 +40,7 @@ function Get-AbrOntapEfficiencyAggr {
4040
}
4141

4242
$TableParams = @{
43-
Name = "Aggregate Efficiency Savings Information - $($ClusterInfo.ClusterName)"
43+
Name = "Aggregate Efficiency Savings - $($ClusterInfo.ClusterName)"
4444
List = $false
4545
ColumnWidths = 35, 15, 15, 15, 20
4646
}

Src/Private/Get-AbrOntapEfficiencyConfig.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapEfficiencyConfig {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.5.0
8+
Version: 0.6.2
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -42,7 +42,7 @@ function Get-AbrOntapEfficiencyConfig {
4242
}
4343

4444
$TableParams = @{
45-
Name = "Storage Efficiency Savings Information - $($ClusterInfo.ClusterName)"
45+
Name = "Storage Efficiency Savings - $($ClusterInfo.ClusterName)"
4646
List = $false
4747
ColumnWidths = 30, 10, 15, 15, 15, 15
4848
}

Src/Private/Get-AbrOntapEfficiencyVol.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapEfficiencyVol {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.5.0
8+
Version: 0.6.2
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -45,7 +45,7 @@ function Get-AbrOntapEfficiencyVol {
4545
}
4646

4747
$TableParams = @{
48-
Name = "Volume Efficiency Savings Information - $($Vserver)"
48+
Name = "Volume Efficiency Savings - $($Vserver)"
4949
List = $false
5050
ColumnWidths = 30, 15, 10, 11, 10, 12 ,12
5151
}

Src/Private/Get-AbrOntapEfficiencyVolDetailed.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapEfficiencyVolDetailed {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.5.0
8+
Version: 0.6.2
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -46,7 +46,7 @@ function Get-AbrOntapEfficiencyVolDetailed {
4646
}
4747

4848
$TableParams = @{
49-
Name = "Volume Efficiency Savings Detailed Information - $($Vserver)"
49+
Name = "Volume Efficiency Savings Detailed - $($Vserver)"
5050
List = $false
5151
ColumnWidths = 20, 10, 10, 11, 10, 12, 12, 15
5252
}

Src/Private/Get-AbrOntapEfficiencyVolSisStatus.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function Get-AbrOntapEfficiencyVolSisStatus {
5050
}
5151

5252
$TableParams = @{
53-
Name = "Volume Deduplication Information - $($Vserver)"
53+
Name = "Volume Deduplication - $($Vserver)"
5454
List = $false
5555
ColumnWidths = 30, 15, 15, 20, 20
5656
}

Src/Private/Get-AbrOntapNetworkBdomain.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapNetworkBdomain {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.5.0
8+
Version: 0.6.2
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -38,7 +38,7 @@ function Get-AbrOntapNetworkBdomain {
3838
}
3939

4040
$TableParams = @{
41-
Name = "Network Broadcast Domain Information - $($ClusterInfo.ClusterName)"
41+
Name = "Network Broadcast Domain - $($ClusterInfo.ClusterName)"
4242
List = $false
4343
ColumnWidths = 20, 20, 20, 10, 30
4444
}

Src/Private/Get-AbrOntapNetworkFailoverGroup.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapNetworkFailoverGroup {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.5.0
8+
Version: 0.6.2
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -36,7 +36,7 @@ function Get-AbrOntapNetworkFailoverGroup {
3636
}
3737

3838
$TableParams = @{
39-
Name = "Network Failover Group Information - $($ClusterInfo.ClusterName)"
39+
Name = "Network Failover Group - $($ClusterInfo.ClusterName)"
4040
List = $false
4141
ColumnWidths = 30, 30, 40
4242
}

Src/Private/Get-AbrOntapNetworkIfgrp.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function Get-AbrOntapNetworkIfgrp {
55
.DESCRIPTION
66
77
.NOTES
8-
Version: 0.5.0
8+
Version: 0.6.2
99
Author: Jonathan Colon
1010
Twitter: @jcolonfzenpr
1111
Github: rebelinux
@@ -51,7 +51,7 @@ function Get-AbrOntapNetworkIfgrp {
5151

5252

5353
$TableParams = @{
54-
Name = "Link Aggregation Group Information - $($Node)"
54+
Name = "Link Aggregation Group - $($Node)"
5555
List = $false
5656
ColumnWidths = 15, 15, 15 ,20 ,20, 15
5757
}

0 commit comments

Comments
 (0)