From 8006bd6876ac6079c23aab03f49b29615e917c77 Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Wed, 24 Nov 2021 11:04:45 -0500 Subject: [PATCH] display message in stub when UI is disabled --- command/agent/http.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/command/agent/http.go b/command/agent/http.go index 83ea36e5d90..6371873d0e6 100644 --- a/command/agent/http.go +++ b/command/agent/http.go @@ -47,8 +47,9 @@ var ( // Set to false by stub_asset if the ui build tag isn't enabled uiEnabled = true - // Overridden if the ui build tag isn't enabled - stubHTML = "" + // Displayed when ui is disabled, but overridden if the ui build + // tag isn't enabled + stubHTML = "

Nomad UI is disabled

" // allowCORS sets permissive CORS headers for a handler allowCORS = cors.New(cors.Options{