Skip to content

Commit

Permalink
Merge branch 'dev_release_2.1' of https://github.com/Keyfactor/paloal…
Browse files Browse the repository at this point in the history
…to-firewall-orchestrator into dev_release_2.1
  • Loading branch information
bhillkeyfactor committed Mar 5, 2024
2 parents 340494c + 556b20f commit b53be1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions PaloAlto/Client/PaloAltoClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,7 @@ public async Task<GetProfileByCertificateResponse> GetProfileByCertificate(strin
{
try
{
var xPath = storePath.Contains("template",StringComparison.CurrentCultureIgnoreCase)
? $"{storePath}/ssl-tls-service-profile/entry[@name='{certificate}']"
: $"{storePath}/ssl-tls-service-profile/entry[./certificate='{certificate}']";
var xPath = $"{storePath}/ssl-tls-service-profile/entry[./certificate='{certificate}']";
var uri = $"/api/?type=config&action=get&target-tpl={GetTemplateName(storePath)}&xpath={xPath}&key={ApiKey}";
var response =
await GetXmlResponseAsync<GetProfileByCertificateResponse>(await HttpClient.GetAsync(uri));
Expand Down
2 changes: 1 addition & 1 deletion PaloAlto/Jobs/Inventory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ protected virtual CurrentInventoryItem BuildInventoryItem(string alias, string c
//Add Entry Params so the show up in the UI Inventory Store Popup
var siteSettingsDict = new Dictionary<string, object>
{
{ "ProfileName", string.IsNullOrEmpty(bindings.Result?.Entry?.Name)?"":bindings.Result?.Entry?.Name},
{ "TlsProfileName", string.IsNullOrEmpty(bindings.Result?.Entry?.Name)?"":bindings.Result?.Entry?.Name},
{ "TlsMinVersion", string.IsNullOrEmpty(bindings.Result?.Entry?.ProtocolSettings?.MinVersion?.Text)?"":bindings.Result?.Entry?.ProtocolSettings?.MinVersion?.Text},
{ "TlsMaxVersion", string.IsNullOrEmpty(bindings.Result?.Entry?.ProtocolSettings?.MaxVersion?.Text)?"":bindings.Result?.Entry?.ProtocolSettings?.MaxVersion?.Text },
{ "Trusted Root", trustedRoot},
Expand Down

0 comments on commit b53be1d

Please sign in to comment.