Skip to content

Commit

Permalink
adds additional check to apiParameters.clusters (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-awelle authored Nov 14, 2022
1 parent 24f406c commit d7a453d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Steamfitter.Api/Services/StackStormService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d7a453d

Please sign in to comment.