Skip to content

Commit 0dc6c84

Browse files
PoshACME defensively allow on/off for true
1 parent e8c28da commit 0dc6c84

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Certify.Shared.Extensions/Providers/DnsProviderPoshACME.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,6 +1242,16 @@ private string FormatParamKeyValue(ProviderParameter parameterDefinition, KeyVal
12421242

12431243
if (parameterDefinition.Type == OptionType.Boolean)
12441244
{
1245+
if (val == "on")
1246+
{
1247+
val = "true";
1248+
}
1249+
1250+
if (val == "off")
1251+
{
1252+
val = "false";
1253+
}
1254+
12451255
// boolean
12461256
return key + "=" + (bool.Parse(val) == true ? "$true" : "$false");
12471257
}

0 commit comments

Comments
 (0)