From fd248d65521fd1f92f6ac42ba2d6c3d008cea0e4 Mon Sep 17 00:00:00 2001
From: Ryan Johnson <johnsonryan@vmware.com>
Date: Fri, 17 Feb 2023 15:40:16 -0500
Subject: [PATCH] fix: vcenter server ring topology

- Update `Publish-vCenerHealth` to correctly link and display the vCenter Server Ring Topology Health from SoS.
- Bump to 1.1.0.1001

#91

Signed-off-by: Ryan Johnson <johnsonryan@vmware.com>
---
 VMware.CloudFoundation.Reporting.psd1 | 2 +-
 VMware.CloudFoundation.Reporting.psm1 | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/VMware.CloudFoundation.Reporting.psd1 b/VMware.CloudFoundation.Reporting.psd1
index 91df2d90..633bb71d 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 = '1.0.6.1004'
+    ModuleVersion = '1.1.0.1001'
     
     # Supported PSEditions
     # CompatiblePSEditions = @()
diff --git a/VMware.CloudFoundation.Reporting.psm1 b/VMware.CloudFoundation.Reporting.psm1
index 1811c3ea..6fa37081 100644
--- a/VMware.CloudFoundation.Reporting.psm1
+++ b/VMware.CloudFoundation.Reporting.psm1
@@ -1972,6 +1972,7 @@ Function Publish-VcenterHealth {
             } else {
                 $ringTopologyHealth = $ringTopologyHealth | Sort-Object Component, Resource | ConvertTo-Html -Fragment -PreContent '<a id="vcenter-ring-topology"></a><h3>vCenter Server Ring Topology Health Status</h3>' -PostContent '<p><strong>WARNING</strong>: vCenter Server Overall Health data not found.</p>' -As Table
             }
+            $ringTopologyHealth
         } else {
             $ringTopologyHealth | Sort-Object Component, Resource
         }
@@ -9472,7 +9473,7 @@ Function Get-ClarityReportNavigation {
                     <label for="vcenter">vCenter Server</label>
                     <ul class="nav-list">
                         <li><a class="nav-link" href="#vcenter-overall">Overall Health</a></li>
-                        <li><a class="nav-link" href="#vcenter-ring">Single Sign-On Health</a></li>
+                        <li><a class="nav-link" href="#vcenter-ring-topology">Single Sign-On Health</a></li>
                     </ul>
                 </section>
                 <section class="nav-group collapsible">