Skip to content

Commit

Permalink
Merge pull request #156 from NoxOrg/feature/remove-elastic-apm
Browse files Browse the repository at this point in the history
- temporarily remove elastic apm
  • Loading branch information
jan-schutte authored Jan 10, 2024
2 parents 184a2f7 + 99782b4 commit 895f11e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Nox.Cli.Server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
});
}
}
app.UseAllElasticApm(builder.Configuration);
//app.UseAllElasticApm(builder.Configuration);
app.UseHttpsRedirection();
app.UseRouting();
app.UseAuthentication();
Expand Down
11 changes: 7 additions & 4 deletions src/Nox.Cli.Variables/ClientVariableProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,17 @@ public IDictionary<string, object> GetUnresolvedInputVariables(INoxAction action
{
unresolvedVars.TryAdd(input.Key, unresolvedString);
}
} else if (input.Value.Default is Dictionary<object, object> unresolvedObjectDictionary)
} else if (input.Value.Default is Dictionary<object, object?> 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<string, string> unresolvedStringDictionary)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Nox.Cli/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"profiles": {
"Nox.Cli": {
"commandName": "Project",
"commandLineArgs": "new solution",
"commandLineArgs": "sync ad",
"workingDirectory": "/home/jan/demo/CliDemo",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
Expand Down

0 comments on commit 895f11e

Please sign in to comment.