Skip to content

Commit

Permalink
fix: apply suggestions from code review
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Johnson <[email protected]>
  • Loading branch information
tenthirtyam authored and Ryan Johnson committed Feb 17, 2023
1 parent 2eede0f commit 928b63f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions VMware.CloudFoundation.Reporting.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -2285,7 +2285,7 @@ Function Publish-BackupStatus {

if ($PsBoundParameters.ContainsKey('outputJson')) {
$json = Start-CreateOutputJsonDirectory -jsonFolder $outputJson -jsonFileSuffix $backupJsonSuffix
$allBackupStatusObject | ConvertTo-JSON -Depth 10 | Out-File $json -encoding ASCII
$allBackupStatusObject | ConvertTo-JSON -Depth 10 | Out-File $json -Encoding ASCII
Write-Output "JSON Created at $json"
} else {
if ($allBackupStatusObject.Count -eq 0) { $addNoIssues = $true }
Expand Down Expand Up @@ -2372,7 +2372,7 @@ Function Publish-NsxtTransportNodeStatus {

if ($PsBoundParameters.ContainsKey('outputJson')) {
$json = Start-CreateOutputJsonDirectory -jsonFolder $outputJson -jsonFileSuffix $nsxtTransportJsonSuffix
$allNsxtTransportNodeStatusObject | ConvertTo-JSON -Depth 10 | Out-File $json -encoding ASCII
$allNsxtTransportNodeStatusObject | ConvertTo-JSON -Depth 10 | Out-File $json -Encoding ASCII
Write-Output "JSON Created at $json"
} else {
if ($allNsxtTransportNodeStatusObject.Count -eq 0) {
Expand Down Expand Up @@ -2461,7 +2461,7 @@ Function Publish-NsxtTransportNodeTunnelStatus {
}
if ($PsBoundParameters.ContainsKey('outputJson')) {
$json = Start-CreateOutputJsonDirectory -jsonFolder $outputJson -jsonFileSuffix $nsxttntunnelJsonSuffix
$allNsxtTransportNodeTunnelStatusObject | ConvertTo-JSON -Depth 10 | Out-File $json -encoding ASCII
$allNsxtTransportNodeTunnelStatusObject | ConvertTo-JSON -Depth 10 | Out-File $json -Encoding ASCII
Write-Output "JSON Created at $json"
} else {
if ($allNsxtTransportNodeTunnelStatusObject.Count -eq 0) { $addNoIssues = $true }
Expand Down Expand Up @@ -2550,7 +2550,7 @@ Function Publish-NsxtTier0BgpStatus {
}
if ($PsBoundParameters.ContainsKey('outputJson')) {
$json = Start-CreateOutputJsonDirectory -jsonFolder $outputJson -jsonFileSuffix $nsxttier0bgpJsonSuffix
$allNsxtTier0BgpStatusObject | ConvertTo-JSON -Depth 10 | Out-File $json -encoding ASCII
$allNsxtTier0BgpStatusObject | ConvertTo-JSON -Depth 10 | Out-File $json -Encoding ASCII
Write-Output "JSON Created at $json"
} else {
if ($allNsxtTier0BgpStatusObject.Count -eq 0) { $addNoIssues = $true }
Expand Down Expand Up @@ -2660,7 +2660,7 @@ Function Publish-SnapshotStatus {

if ($PsBoundParameters.ContainsKey('outputJson')) {
$json = Start-CreateOutputJsonDirectory -jsonFolder $outputJson -jsonFileSuffix $snapshotJsonSuffix
$allSnapshotStatusObject | ConvertTo-JSON -Depth 10 | Out-File $json -encoding ASCII
$allSnapshotStatusObject | ConvertTo-JSON -Depth 10 | Out-File $json -Encoding ASCII
Write-Output "JSON Created at $json"
} else {

Expand Down Expand Up @@ -2771,7 +2771,7 @@ Function Publish-LocalUserExpiry {
$json = Start-CreateOutputJsonDirectory -jsonFolder $outputJson -jsonFileSuffix $localuserexpiryJsonSuffix
Write-Output $json
Write-Output $$allPasswordExpiryObject
$allPasswordExpiryObject | ConvertTo-JSON -Depth 10 | Out-File $json -encoding ASCII
$allPasswordExpiryObject | ConvertTo-JSON -Depth 10 | Out-File $json -Encoding ASCII
Write-Output "JSON Created at $json"
} else {
if ($allPasswordExpiryObject.Count -eq 0) { $addNoIssues = $true }
Expand Down Expand Up @@ -2858,7 +2858,7 @@ Function Publish-NsxtHealthNonSOS {

if ($PsBoundParameters.ContainsKey("outputJson")) {
$json = Start-CreateOutputJsonDirectory -jsonFolder $outputJson -jsonFileSuffix $nsxtCombinedHealthNonSOSJsonSuffix
$allNsxtHealthObject | ConvertTo-JSON -Depth 10 | Out-File $json -encoding ASCII
$allNsxtHealthObject | ConvertTo-JSON -Depth 10 | Out-File $json -Encoding ASCII
Write-Output "JSON Created at $json"
} else {
if ($allNsxtHealthObject.Count -eq 0) { $addNoIssues = $true }
Expand Down Expand Up @@ -3051,7 +3051,7 @@ Function Publish-StorageCapacityHealth {
"esxi" = $allEsxiStorageCapacity
"datastore" = $allDatastoreStorageCapacity
}
$combinedJson | ConvertTo-JSON -Depth 10 | Out-File $json -encoding ASCII
$combinedJson | ConvertTo-JSON -Depth 10 | Out-File $json -Encoding ASCII
Write-Output "JSON Created at $json"

} else {
Expand Down Expand Up @@ -4792,7 +4792,7 @@ Function Publish-ComponentConnectivityHealthNonSOS {

if ($PsBoundParameters.ContainsKey("outputJson")) {
$json = Start-CreateOutputJsonDirectory -jsonFolder $outputJson -jsonFileSuffix $ComponentConnectivityHealthNonSOSJsonSuffix
$allConnectivityObject | ConvertTo-JSON -Depth 10 | Out-File $json -encoding ASCII
$allConnectivityObject | ConvertTo-JSON -Depth 10 | Out-File $json -Encoding ASCII
Write-Output "JSON Created at $json"
} else {
if ($allConnectivityObject.Count -eq 0) { $addNoIssues = $true }
Expand Down

0 comments on commit 928b63f

Please sign in to comment.