Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 26b7048

Browse files
fortunkamMatthew Fortunka
andauthored
fix issue with loaded parameter from command line (#530)
Co-authored-by: Matthew Fortunka <mafortun@microsoft.com>
1 parent b9d942f commit 26b7048

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/APIM_ARMTemplate/apimtemplate/Extractor/Models/ExtractorConfiguration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class ExtractorConfig
5050
public string notIncludeNamedValue { get; set; }
5151

5252
[Description("Parameterize named values where value is retrieved from a Key Vault secret")]
53-
public bool paramNamedValuesKeyVaultSecrets { get; set; }
53+
public string paramNamedValuesKeyVaultSecrets { get; set; }
5454

5555
[Description("Group the operations into batches of x?")]
5656
public int operationBatchSize {get;set;}
@@ -137,7 +137,7 @@ public Extractor(ExtractorConfig exc, string dirName)
137137
this.paramLogResourceId = exc.paramLogResourceId != null && exc.paramLogResourceId.Equals("true");
138138
this.notIncludeNamedValue = exc.notIncludeNamedValue != null && exc.notIncludeNamedValue.Equals("true");
139139
this.operationBatchSize = exc.operationBatchSize;
140-
this.paramNamedValuesKeyVaultSecrets = exc.paramNamedValuesKeyVaultSecrets;
140+
this.paramNamedValuesKeyVaultSecrets = exc.paramNamedValuesKeyVaultSecrets != null && exc.paramNamedValuesKeyVaultSecrets.Equals("true");
141141
}
142142

143143
public Extractor(ExtractorConfig exc) : this(exc, exc.fileFolder)

0 commit comments

Comments
 (0)