From ade0745a7b5b957db21924b1482ac6ae8eb88859 Mon Sep 17 00:00:00 2001 From: qJake Date: Fri, 10 Apr 2020 21:56:40 -0500 Subject: [PATCH 1/2] Fix initial setup bug --- HADotNet.CommandCenter/Controllers/AdminController.cs | 7 ++++++- HADotNet.CommandCenter/HADotNet.CommandCenter.csproj | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/HADotNet.CommandCenter/Controllers/AdminController.cs b/HADotNet.CommandCenter/Controllers/AdminController.cs index 6e9cfa7..e5eb836 100644 --- a/HADotNet.CommandCenter/Controllers/AdminController.cs +++ b/HADotNet.CommandCenter/Controllers/AdminController.cs @@ -4,6 +4,7 @@ using HADotNet.CommandCenter.Services.Interfaces; using HADotNet.CommandCenter.Utils; using HADotNet.CommandCenter.ViewModels; +using HADotNet.Core; using HADotNet.Core.Clients; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; @@ -75,6 +76,8 @@ public async Task Settings() { await ConfigStore.ManipulateConfig(c => c.Settings.AccessToken = c.Settings.BaseUri = null); + ClientFactory.Reset(); + config = await ConfigStore.GetConfigAsync(); TempData.Remove(AlertManager.GRP_SUCCESS); @@ -96,9 +99,11 @@ public async Task Settings([FromForm] SystemSettings newSettings) if (ModelState.IsValid) { newSettings ??= new SystemSettings(); - newSettings.BaseUri = newSettings.BaseUri.TrimEnd('/'); + newSettings.BaseUri = newSettings.BaseUri?.TrimEnd('/'); await ConfigStore.ManipulateConfig(c => c.Settings = newSettings); + ClientFactory.Reset(); + TempData["check-settings"] = true; return RedirectToAction("Settings"); diff --git a/HADotNet.CommandCenter/HADotNet.CommandCenter.csproj b/HADotNet.CommandCenter/HADotNet.CommandCenter.csproj index 4f46912..c887e32 100644 --- a/HADotNet.CommandCenter/HADotNet.CommandCenter.csproj +++ b/HADotNet.CommandCenter/HADotNet.CommandCenter.csproj @@ -5,8 +5,8 @@ win10;alpine.3.10-x64;debian.10-arm Latest Linux - 1.0.17.0 - 1.0.17.0 + 1.0.18.0 + 1.0.18.0 false false false From ba2edfcdd741f816a5da152924f38a9f5d1b8edc Mon Sep 17 00:00:00 2001 From: qJake Date: Fri, 10 Apr 2020 21:58:39 -0500 Subject: [PATCH 2/2] PS version --- Docker/BuildHaccContainers.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Docker/BuildHaccContainers.ps1 b/Docker/BuildHaccContainers.ps1 index cb90256..2f26dc7 100644 --- a/Docker/BuildHaccContainers.ps1 +++ b/Docker/BuildHaccContainers.ps1 @@ -1,4 +1,4 @@ -$version = '1.0.17' +$version = '1.0.18' function Test-ExitCode ([int] $Expected = 0) {