Skip to content

Commit ee56545

Browse files
committed
renamed -IgnoreContacts to -IgnoreContact to match the actual referenced param (#619)
1 parent 8795895 commit ee56545

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

Posh-ACME/Public/Get-PAAccount.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function Get-PAAccount {
3030
}
3131

3232
# Remove the Contact param if necessary
33-
if ($server.IgnoreContacts -and 'Contact' -in $PSBoundParameters.Keys) {
33+
if ($server.IgnoreContact -and 'Contact' -in $PSBoundParameters.Keys) {
3434
Write-Debug "Ignoring explicit Contact parameter."
3535
$PSBoundParameters.Remove('Contact')
3636
$Contact = $null

Posh-ACME/Public/New-PAAccount.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function New-PAAccount {
3333
}
3434

3535
# Remove the Contact param if necessary
36-
if ($server.IgnoreContacts -and 'Contact' -in $PSBoundParameters.Keys) {
36+
if ($server.IgnoreContact -and 'Contact' -in $PSBoundParameters.Keys) {
3737
Write-Debug "Ignoring explicit Contact parameter."
3838
$PSBoundParameters.Remove('Contact')
3939
$Contact = $null

Posh-ACME/Public/New-PACertificate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function New-PACertificate {
7878
Write-Verbose "Using ACME Server $($server.location)"
7979

8080
# Remove the Contact param if necessary
81-
if ($server.IgnoreContacts -and 'Contact' -in $PSBoundParameters.Keys) {
81+
if ($server.IgnoreContact -and 'Contact' -in $PSBoundParameters.Keys) {
8282
Write-Debug "Ignoring explicit Contact parameter."
8383
$PSBoundParameters.Remove('Contact')
8484
$Contact = $null

Posh-ACME/Public/Set-PAAccount.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function Set-PAAccount {
3838
}
3939

4040
# Remove the Contact param if necessary
41-
if ($server.IgnoreContacts -and 'Contact' -in $PSBoundParameters.Keys) {
41+
if ($server.IgnoreContact -and 'Contact' -in $PSBoundParameters.Keys) {
4242
Write-Debug "Ignoring explicit Contact parameter."
4343
$PSBoundParameters.Remove('Contact')
4444
$Contact = $null

Posh-ACME/Public/Set-PAServer.ps1

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function Set-PAServer {
1616
[switch]$DisableTelemetry,
1717
[switch]$UseAltAccountRefresh,
1818
[switch]$DisableARI,
19-
[switch]$IgnoreContacts,
19+
[switch]$IgnoreContact,
2020
[switch]$NoRefresh,
2121
[switch]$NoSwitch
2222
)
@@ -75,7 +75,7 @@ function Set-PAServer {
7575
SkipCertificateCheck = $SkipCertificateCheck.IsPresent
7676
UseAltAccountRefresh = $UseAltAccountRefresh.IsPresent
7777
DisableARI = $DisableARI.IsPresent
78-
IgnoreContacts = $IgnoreContacts.IsPresent
78+
IgnoreContact = $IgnoreContact.IsPresent
7979
newAccount = $null
8080
newOrder = $null
8181
newNonce = $null
@@ -96,14 +96,14 @@ function Set-PAServer {
9696
$UseAltAccountRefresh = [switch]::Present
9797
}
9898

99-
# If IgnoreContacts wasn't specified, set it to true by default
99+
# If IgnoreContact wasn't specified, set it to true by default
100100
# for CAs that don't support the account-level contacts field
101101
# such as Let's Encrypt.
102-
if (-not $PSBoundParameters.ContainsKey('IgnoreContacts') -and
102+
if (-not $PSBoundParameters.ContainsKey('IgnoreContact') -and
103103
($DirectoryUrl -like '*.letsencrypt.org/*')
104104
) {
105-
$newDir.IgnoreContacts = $true
106-
$IgnoreContacts = [switch]::Present
105+
$newDir.IgnoreContact = $true
106+
$IgnoreContact = [switch]::Present
107107
}
108108
}
109109
}
@@ -213,11 +213,11 @@ function Set-PAServer {
213213
Write-Debug "Setting DisableARI value to $($DisableARI.IsPresent)"
214214
$newDir | Add-Member 'DisableARI' $DisableARI.IsPresent -Force
215215
}
216-
if ($PSBoundParameters.ContainsKey('IgnoreContacts') -and
217-
$newDir.IgnoreContacts -ne $IgnoreContacts.IsPresent)
216+
if ($PSBoundParameters.ContainsKey('IgnoreContact') -and
217+
$newDir.IgnoreContact -ne $IgnoreContact.IsPresent)
218218
{
219-
Write-Debug "Setting IgnoreContacts value to $($IgnoreContacts.IsPresent)"
220-
$newDir | Add-Member 'IgnoreContacts' $IgnoreContacts.IsPresent -Force
219+
Write-Debug "Setting IgnoreContact value to $($IgnoreContact.IsPresent)"
220+
$newDir | Add-Member 'IgnoreContact' $IgnoreContact.IsPresent -Force
221221
}
222222

223223
# save the object to disk except for the dynamic properties

Posh-ACME/en-US/Posh-ACME-help.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7801,7 +7801,7 @@ Set-PAOrder example.com -Plugin FakeDNS -PluginArgs $pArgs</dev:code>
78017801
<dev:defaultValue>False</dev:defaultValue>
78027802
</command:parameter>
78037803
<command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
7804-
<maml:name>IgnoreContacts</maml:name>
7804+
<maml:name>IgnoreContact</maml:name>
78057805
<maml:description>
78067806
<maml:para>Some ACME servers such as Let's Encrypt have chosen to stop supporting and storing contact email addresses in ACME account objects. When set, this flag causes account related functions to ignore the `-Contact` parameter which can prevent bugs in low level account matching code.</maml:para>
78077807
</maml:description>
@@ -7923,7 +7923,7 @@ Set-PAOrder example.com -Plugin FakeDNS -PluginArgs $pArgs</dev:code>
79237923
<dev:defaultValue>False</dev:defaultValue>
79247924
</command:parameter>
79257925
<command:parameter required="false" variableLength="true" globbing="false" pipelineInput="False" position="named" aliases="none">
7926-
<maml:name>IgnoreContacts</maml:name>
7926+
<maml:name>IgnoreContact</maml:name>
79277927
<maml:description>
79287928
<maml:para>Some ACME servers such as Let's Encrypt have chosen to stop supporting and storing contact email addresses in ACME account objects. When set, this flag causes account related functions to ignore the `-Contact` parameter which can prevent bugs in low level account matching code.</maml:para>
79297929
</maml:description>

docs/Functions/Set-PAServer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Set the current ACME server and/or its configuration.
1515

1616
```powershell
1717
Set-PAServer [[-DirectoryUrl] <String>] [-Name <String>] [-NewName <String>] [-SkipCertificateCheck]
18-
[-DisableTelemetry] [-UseAltAccountRefresh] [-DisableARI] [-IgnoreContacts] [-NoRefresh] [-NoSwitch]
18+
[-DisableTelemetry] [-UseAltAccountRefresh] [-DisableARI] [-IgnoreContact] [-NoRefresh] [-NoSwitch]
1919
[<CommonParameters>]
2020
```
2121

@@ -197,7 +197,7 @@ Accept pipeline input: False
197197
Accept wildcard characters: False
198198
```
199199
200-
### -IgnoreContacts
200+
### -IgnoreContact
201201
Some ACME servers such as Let's Encrypt have chosen to stop supporting and storing contact email addresses in ACME account objects. When set, this flag causes account related functions to ignore the `-Contact` parameter which can prevent bugs in low level account matching code.
202202

203203
```yaml

0 commit comments

Comments
 (0)