Skip to content

Commit

Permalink
fixed alias issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bhillkeyfactor committed Feb 29, 2024
1 parent 5c401ed commit df407c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PaloAlto/Jobs/Management.cs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ private JobResult PerformAddition(ManagementJobConfiguration config)
if (string.IsNullOrEmpty(bindingsValidation))
{
var bindingsResponse = SetBindings(config, client,
config.CertificateStoreDetails.StorePath);
config.CertificateStoreDetails.StorePath,alias);
if (bindingsResponse.Result.Status.ToUpper() == "ERROR")
warnings +=
$"Could not Set The Bindings. There was an error calling out to bindings in the device. {Validators.BuildPaloError(bindingsResponse.Result)}";
Expand Down Expand Up @@ -562,15 +562,15 @@ private string CommitChanges(ManagementJobConfiguration config, PaloAltoClient c
}

private Task<ErrorSuccessResponse> SetBindings(ManagementJobConfiguration config, PaloAltoClient client,
string templateName)
string templateName,string aliasName)
{
//Handle the Profile Bindings
try
{
var profileRequest = new EditProfileRequest
{
Name = JobEntryParams.TlsProfileName,
Certificate = config.JobCertificate.Alias
Certificate = aliasName
};
var pMinVersion = new ProfileMinVersion { Text = JobEntryParams.TlsMinVersion };
var pMaxVersion = new ProfileMaxVersion { Text = JobEntryParams.TlsMaxVersion };
Expand Down

0 comments on commit df407c7

Please sign in to comment.