Skip to content

Commit 6b8cfee

Browse files
author
Lee Fine
committed
ab#80665
1 parent d2a810a commit 6b8cfee

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

CitrixAdcOrchestratorJobExtension/CitrixAdcStore.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace Keyfactor.Extensions.Orchestrator.CitricAdc
4141
// ReSharper disable once InconsistentNaming
4242
internal class CitrixAdcStore
4343
{
44-
private const uint DefaultTimeout = 3600;
44+
private const string DefaultTimeout = "3600";
4545
public static readonly string StoreType = "CitrixAdc";
4646

4747
private readonly string _clientMachine;
@@ -66,7 +66,8 @@ public CitrixAdcStore(InventoryJobConfiguration config, string serverUserName, s
6666
dynamic properties = JsonConvert.DeserializeObject(config.CertificateStoreDetails.Properties.ToString());
6767
if (!UInt32.TryParse((properties.timeout == null || string.IsNullOrEmpty(properties.timeout.Value) ? DefaultTimeout : properties.timeout.Value), out _timeout))
6868
{
69-
Logger.LogWarning($"Missing or invalid Custom Field 'timeout' value {properties.timeout.Value}. Value must be an integer. Will use default value of {DefaultTimeout.ToString()}");
69+
Logger.LogWarning($"Invalid Custom Field 'timeout' value {properties.timeout.Value}. Value must be an integer. Will use default value of {DefaultTimeout.ToString()}");
70+
_timeout = Convert.ToUInt32(DefaultTimeout);
7071
}
7172

7273
_clientMachine = config.CertificateStoreDetails.ClientMachine;

0 commit comments

Comments
 (0)