diff --git a/src/Nox.Cli.Server/Program.cs b/src/Nox.Cli.Server/Program.cs index e20edf7..d222827 100755 --- a/src/Nox.Cli.Server/Program.cs +++ b/src/Nox.Cli.Server/Program.cs @@ -81,7 +81,7 @@ }); } } -app.UseAllElasticApm(builder.Configuration); +//app.UseAllElasticApm(builder.Configuration); app.UseHttpsRedirection(); app.UseRouting(); app.UseAuthentication(); diff --git a/src/Nox.Cli.Variables/ClientVariableProvider.cs b/src/Nox.Cli.Variables/ClientVariableProvider.cs index fee2ee1..527a231 100755 --- a/src/Nox.Cli.Variables/ClientVariableProvider.cs +++ b/src/Nox.Cli.Variables/ClientVariableProvider.cs @@ -74,14 +74,17 @@ public IDictionary GetUnresolvedInputVariables(INoxAction action { unresolvedVars.TryAdd(input.Key, unresolvedString); } - } else if (input.Value.Default is Dictionary unresolvedObjectDictionary) + } else if (input.Value.Default is Dictionary unresolvedObjectDictionary) { foreach (var objDictItem in unresolvedObjectDictionary) { - if (_variableRegex.Match(objDictItem.Value.ToString()!).Success) + if (objDictItem.Value != null) { - unresolvedVars.TryAdd(input.Key, objDictItem.Value.ToString()!); - } + if (_variableRegex.Match(objDictItem.Value!.ToString()!).Success) + { + unresolvedVars.TryAdd(input.Key, objDictItem.Value.ToString()!); + } + } } } else if (input.Value.Default is Dictionary unresolvedStringDictionary) { diff --git a/src/Nox.Cli/Properties/launchSettings.json b/src/Nox.Cli/Properties/launchSettings.json index 0782971..9887b0a 100755 --- a/src/Nox.Cli/Properties/launchSettings.json +++ b/src/Nox.Cli/Properties/launchSettings.json @@ -2,7 +2,7 @@ "profiles": { "Nox.Cli": { "commandName": "Project", - "commandLineArgs": "new solution", + "commandLineArgs": "sync ad", "workingDirectory": "/home/jan/demo/CliDemo", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development"