From 00be4989ca2a0a0889b32efad5245bffb08af433 Mon Sep 17 00:00:00 2001 From: Brian Hill Date: Fri, 23 Feb 2024 21:47:17 +0000 Subject: [PATCH] Binding Changes --- PaloAlto/Client/PaloAltoClient.cs | 2 +- PaloAlto/Jobs/Management.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PaloAlto/Client/PaloAltoClient.cs b/PaloAlto/Client/PaloAltoClient.cs index b828d9a..6fed4f2 100644 --- a/PaloAlto/Client/PaloAltoClient.cs +++ b/PaloAlto/Client/PaloAltoClient.cs @@ -183,7 +183,7 @@ private string GetTemplateName(string storePath) return templateName; } - public async Task GetProfileByCertificate(string certificate,string storePath) + public async Task GetProfileByCertificate(string storePath, string certificate) { try { diff --git a/PaloAlto/Jobs/Management.cs b/PaloAlto/Jobs/Management.cs index d6145e0..e5bbdcf 100644 --- a/PaloAlto/Jobs/Management.cs +++ b/PaloAlto/Jobs/Management.cs @@ -248,7 +248,7 @@ private JobResult PerformAddition(ManagementJobConfiguration config) if (duplicate) { DateTime currentTime = DateTime.Now; - alias += alias + "-" + currentTime.ToString("yyyyMMddHHmmss"); + alias = RightTrimAfter(alias, 19) + "_" + currentTime.ToString("yyMMddHHmmss"); //fix name length } //2. Check palo alto for existing thumprints of anything in the chain //todo change path to come from store path