Skip to content

Commit ae62d52

Browse files
poojaVeritassanthosh-vrts
authored andcommitted
Condition set for adding TLS12 will always be true (#42)
1 parent 8a72764 commit ae62d52

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

snippets/powershell/Get-NB-Alerts.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function InitialSetup()
4343

4444
# Force TLS v1.2
4545
try {
46-
if ([Net.ServicePointManager]::SecurityProtocol -notcontains 'Tls12') {
46+
if ([Net.ServicePointManager]::SecurityProtocol -notmatch 'Tls12') {
4747
[Net.ServicePointManager]::SecurityProtocol += [Net.SecurityProtocolType]::Tls12
4848
}
4949
}

snippets/powershell/Get-NB-Images.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function InitialSetup()
4343

4444
# Force TLS v1.2
4545
try {
46-
if ([Net.ServicePointManager]::SecurityProtocol -notcontains 'Tls12') {
46+
if ([Net.ServicePointManager]::SecurityProtocol -notmatch 'Tls12') {
4747
[Net.ServicePointManager]::SecurityProtocol += [Net.SecurityProtocolType]::Tls12
4848
}
4949
}

snippets/powershell/Get-NB-Jobs.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function InitialSetup()
4343

4444
# Force TLS v1.2
4545
try {
46-
if ([Net.ServicePointManager]::SecurityProtocol -notcontains 'Tls12') {
46+
if ([Net.ServicePointManager]::SecurityProtocol -notmatch 'Tls12') {
4747
[Net.ServicePointManager]::SecurityProtocol += [Net.SecurityProtocolType]::Tls12
4848
}
4949
}

snippets/powershell/Post-NB-Cleanup-Assets.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function InitialSetup()
5252

5353
# Force TLS v1.2
5454
try {
55-
if ([Net.ServicePointManager]::SecurityProtocol -notcontains 'Tls12') {
55+
if ([Net.ServicePointManager]::SecurityProtocol -notmatch 'Tls12') {
5656
[Net.ServicePointManager]::SecurityProtocol += [Net.SecurityProtocolType]::Tls12
5757
}
5858
}

0 commit comments

Comments
 (0)