Skip to content

Commit 80b9d22

Browse files
committed
Add ConvertTo-HashToYN function
1 parent e43edb1 commit 80b9d22

File tree

104 files changed

+246
-117
lines changed

Some content is hidden

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

104 files changed

+246
-117
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
- Add Per Volume export policy information
1616
- Add `Node Name` to FCP Interfaces section in FCP Vserver configuration
1717
- Apply powershell best practices
18+
- Add ConvertTo-HashToYN function
1819

1920
### Changed
2021

Src/Private/Get-AbrOntapClusterASUP.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function Get-AbrOntapClusterASUP {
3636
'Last Time Stamp' = $NodesAUTO.LastTimestampDT
3737
'Last Subject' = $NodesAUTO.LastSubject
3838
}
39-
$Outobj = [PSCustomObject]$Inobj
39+
$Outobj = [pscustomobject](ConvertTo-HashToYN $inObj)
4040

4141
if ($Healthcheck.Cluster.AutoSupport) {
4242
$Outobj | Where-Object { $_.'Enabled' -like 'No' } | Set-Style -Style Warning -Property 'Enabled'

Src/Private/Get-AbrOntapEfficiencyAggr.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function Get-AbrOntapEfficiencyAggr {
3838
'Data Reduction' = $Saving.AggrDataReductionStorageEfficiencyRatio
3939

4040
}
41-
$OutObj += [pscustomobject]$inobj
41+
$OutObj += [pscustomobject](ConvertTo-HashToYN $inObj)
4242
} catch {
4343
Write-PScriboMessage -IsWarning $_.Exception.Message
4444
}
@@ -69,7 +69,7 @@ function Get-AbrOntapEfficiencyAggr {
6969
'Aggregate' = $Item.Name
7070
'Volumes without Deduplication' = $VolFilter.Name -join ', '
7171
}
72-
$OutObj += [pscustomobject]$inobj
72+
$OutObj += [pscustomobject](ConvertTo-HashToYN $inObj)
7373
}
7474
} catch {
7575
Write-PScriboMessage -IsWarning $_.Exception.Message

Src/Private/Get-AbrOntapEfficiencyConfig.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function Get-AbrOntapEfficiencyConfig {
4040
'Total Data Reduction' = $TotalStorageEfficiencyRatio.TotalStorageEfficiencyRatio
4141

4242
}
43-
$OutObj += [pscustomobject]$inobj
43+
$OutObj += [pscustomobject](ConvertTo-HashToYN $inObj)
4444
} catch {
4545
Write-PScriboMessage -IsWarning $_.Exception.Message
4646
}

Src/Private/Get-AbrOntapEfficiencyVol.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function Get-AbrOntapEfficiencyVol {
4343
'Effective Used' = $Saving.EffectiveUsed | ConvertTo-FormattedNumber -Type Datasize -ErrorAction SilentlyContinue
4444
'Efficiency Percent' = $Saving.EfficiencyPercent | ConvertTo-FormattedNumber -Type Percent -NumberFormatString '0.0' -ErrorAction SilentlyContinue
4545
}
46-
$OutObj += [pscustomobject]$inobj
46+
$OutObj += [pscustomobject](ConvertTo-HashToYN $inObj)
4747
} catch {
4848
Write-PScriboMessage -IsWarning $_.Exception.Message
4949
}

Src/Private/Get-AbrOntapEfficiencyVolDetailed.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function Get-AbrOntapEfficiencyVolDetailed {
4444
'Efficiency %' = $Saving.EfficiencyPercent | ConvertTo-FormattedNumber -Type Percent -NumberFormatString '0.0' -ErrorAction SilentlyContinue
4545
'Efficiency % w/o Snapshots' = [Math]::Round((($Saving.Returns.Dedupe + $Saving.Returns.Compression) / ($Saving.Used + $Saving.Returns.Dedupe + $Saving.Returns.Compression)) * 100) | ConvertTo-FormattedNumber -Type Percent -NumberFormatString '0.0' -ErrorAction SilentlyContinue
4646
}
47-
$OutObj += [pscustomobject]$inobj
47+
$OutObj += [pscustomobject](ConvertTo-HashToYN $inObj)
4848
} catch {
4949
Write-PScriboMessage -IsWarning $_.Exception.Message
5050
}

Src/Private/Get-AbrOntapEfficiencyVolSisStatus.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function Get-AbrOntapEfficiencyVolSisStatus {
4545
'Schedule Or Policy' = ConvertTo-EmptyToFiller $Item.ScheduleOrPolicy
4646
'Progress' = ConvertTo-EmptyToFiller $Item.Progress
4747
}
48-
$OutObj += [pscustomobject]$inobj
48+
$OutObj += [pscustomobject](ConvertTo-HashToYN $inObj)
4949
} catch {
5050
Write-PScriboMessage -IsWarning $_.Exception.Message
5151
}

Src/Private/Get-AbrOntapNetworkBdomain.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function Get-AbrOntapNetworkBdomain {
3535
'MTU' = $Item.Mtu
3636
'Ports' = $Item.Ports
3737
}
38-
$BDomainObj += [pscustomobject]$inobj
38+
$BDomainObj += [pscustomobject](ConvertTo-HashToYN $inObj)
3939
}
4040

4141
if ($Healthcheck.Network.Port) {

Src/Private/Get-AbrOntapNetworkFailoverGroup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function Get-AbrOntapNetworkFailoverGroup {
3434
'Vserver' = $Item.Vserver
3535
'Target' = $Item.Target
3636
}
37-
$FGObj += [pscustomobject]$inobj
37+
$FGObj += [pscustomobject](ConvertTo-HashToYN $inObj)
3838
} catch {
3939
Write-PScriboMessage -IsWarning $_.Exception.Message
4040
}

Src/Private/Get-AbrOntapNetworkIfgrp.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function Get-AbrOntapNetworkIfgrp {
4444
'Mac Address' = $Nics.MacAddress
4545
'Port Participation' = $Nics.PortParticipation
4646
}
47-
$AggregatePorts += [pscustomobject]$inobj
47+
$AggregatePorts += [pscustomobject](ConvertTo-HashToYN $inObj)
4848
} catch {
4949
Write-PScriboMessage -IsWarning $_.Exception.Message
5050
}

0 commit comments

Comments
 (0)