diff --git a/installer/fileserver/html/index.html b/installer/fileserver/html/index.html index b3bb8a9e07..eb0a75fb5f 100644 --- a/installer/fileserver/html/index.html +++ b/installer/fileserver/html/index.html @@ -31,10 +31,10 @@
- {{if .Feedback }} + {{if .InitErrorFeedback }}
- {{ .Feedback }} + {{ .InitErrorFeedback }} @@ -161,7 +161,7 @@

Infrastructure Deployment Tools

- {{if .Feedback}} + {{if .InitErrorFeedback}} Re-initialize the vSphere Integrated Container Appliance diff --git a/installer/fileserver/server.go b/installer/fileserver/server.go index 00442b32e7..41d50ca69c 100644 --- a/installer/fileserver/server.go +++ b/installer/fileserver/server.go @@ -53,12 +53,13 @@ type config struct { // IndexHTMLOptions contains fields for html templating in index.html type IndexHTMLOptions struct { - InvalidLogin bool - Feedback string - NeedLogin bool - AdmiralAddr string - DemoVCHAddr string - FileserverAddr string + InvalidLogin bool + InitErrorFeedback string + InitSuccessFeedback string + NeedLogin bool + AdmiralAddr string + DemoVCHAddr string + FileserverAddr string } var ( @@ -189,8 +190,9 @@ func indexHandler(resp http.ResponseWriter, req *http.Request) { defer trace.End(trace.Begin("")) html := &IndexHTMLOptions{ - NeedLogin: needInitializationServices(req), - Feedback: "", + NeedLogin: needInitializationServices(req), + InitErrorFeedback: "", + InitSuccessFeedback: "", } if req.Method == http.MethodPost { @@ -205,7 +207,12 @@ func indexHandler(resp http.ResponseWriter, req *http.Request) { } else { log.Infof("Validation succeeded") - html.Feedback = startInitializationServices() + html.InitErrorFeedback = startInitializationServices() + // Display success message upon init success. + if html.InitErrorFeedback == "" { + html.InitSuccessFeedback = "Installation successful. Refer to the Post-install and Deployment tasks below." + } + html.NeedLogin = false } }