From 61029e546d66968d5d2ba8fe0fddb5df1d2c703f Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Tue, 2 May 2023 16:45:00 -0400 Subject: [PATCH] fix: update `Publish-NsxtTier0BgpStatus` - Updates `Publish-NsxtTier0BgpStatus` to format the HTML correctly in the event that $nsxtTier0BgpStatus.Count for a workload domain is not greater than 0. - Updates module version to v2.1.0.1006. - Updates the `CHANGELOG.md`. Signed-off-by: Ryan Johnson --- CHANGELOG.md | 4 ++++ VMware.CloudFoundation.Reporting.psd1 | 2 +- VMware.CloudFoundation.Reporting.psm1 | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e11c299..be930c85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ > Release Date: Unreleased +Bug Fixes: + +- Updates `Publish-NsxtTier0BgpStatus` to correctly format the HTML output if the NSX Tier-0 is not configured for BGP. [GH-134](https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-reporting/pull/134) + Enhancement: - Added `Publish-HardwareCompatibilityHealth` to return the hardware compatibilty health from the SoS Health Summary JSON data. [GH-129](https://github.com/vmware/powershell-module-for-vmware-cloud-foundation-reporting/pull/129) diff --git a/VMware.CloudFoundation.Reporting.psd1 b/VMware.CloudFoundation.Reporting.psd1 index 7b9f4bc6..d9131ffd 100644 --- a/VMware.CloudFoundation.Reporting.psd1 +++ b/VMware.CloudFoundation.Reporting.psd1 @@ -12,7 +12,7 @@ RootModule = '.\VMware.CloudFoundation.Reporting.psm1' # Version number of this module. - ModuleVersion = '2.1.0.1005' + ModuleVersion = '2.1.0.1006' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/VMware.CloudFoundation.Reporting.psm1 b/VMware.CloudFoundation.Reporting.psm1 index ef0144d6..08e815c3 100644 --- a/VMware.CloudFoundation.Reporting.psm1 +++ b/VMware.CloudFoundation.Reporting.psm1 @@ -2974,6 +2974,7 @@ Function Publish-NsxtTier0BgpStatus { $allNsxtTier0BgpStatusObject = Convert-CssClass -htmldata $allNsxtTier0BgpStatusObject } else { $allNsxtTier0BgpStatusObject = $allNsxtTier0BgpStatusObject | ConvertTo-Html -Fragment -PreContent '

NSX Tier-0 Gateway BGP Status

' -PostContent '

No BGP configuration found on NSX Tier-0 Gateway(s).

' -As Table + $allNsxtTier0BgpStatusObject = Convert-CssClass -htmldata $allNsxtTier0BgpStatusObject } $allNsxtTier0BgpStatusObject }