Skip to content

Commit

Permalink
Fix for #109. New-PACertificate properly defaults to Manual DnsPlugin…
Browse files Browse the repository at this point in the history
… when not explicitly specified.
  • Loading branch information
rmbolger committed Nov 27, 2018
1 parent 4b122ff commit 721adf6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Posh-ACME/Public/New-PACertificate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,15 @@ function New-PACertificate {
# create a hashtable of validation parameters to splat that uses
# explicit params backed up by previous order params
$chalParams = @{
DnsPlugin = $order.DnsPlugin
DnsAlias = $order.DnsAlias
DnsSleep = $order.DnsSleep
ValidationTimeout = $order.ValidationTimeout
}
if ($order.DnsPlugin) {
$chalParams.DnsPlugin = $order.DnsPlugin
}
if ($order.DnsAlias) {
$chalParams.DnsAlias = $order.DnsAlias
}
if ('PluginArgs' -in $PSBoundParameters.Keys) {
$chalParams.PluginArgs = $PluginArgs
}
Expand Down

0 comments on commit 721adf6

Please sign in to comment.