From d7a453dd815fb0b5e1ee373629611d09b47636f1 Mon Sep 17 00:00:00 2001 From: Adam Welle Date: Mon, 14 Nov 2022 16:53:11 -0500 Subject: [PATCH] adds additional check to apiParameters.clusters (#47) --- Steamfitter.Api/Services/StackStormService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Steamfitter.Api/Services/StackStormService.cs b/Steamfitter.Api/Services/StackStormService.cs index c879af1..dbea5e9 100644 --- a/Steamfitter.Api/Services/StackStormService.cs +++ b/Steamfitter.Api/Services/StackStormService.cs @@ -113,7 +113,7 @@ private async void Run() { _logger.LogInformation($"Starting StackStormService"); var apiParameters = _options.ApiParameters; - if (apiParameters == null || !apiParameters.ContainsKey("clusters")) + if (apiParameters == null || !apiParameters.ContainsKey("clusters") || String.IsNullOrWhiteSpace(apiParameters["clusters"])) { _logger.LogWarning("\"clusters\" appsetting value needs to be set in order to get Stackstorm VMs"); _hasVms = false;