Skip to content

Condition set for adding TLS12 will always be true #41

Closed
@brajesh-dubey

Description

@brajesh-dubey

Condition used for adding TLS12 in security protocol is incorrectly placed and will always be true basis the code published.
-notcontains is incorrectly used here, this will become false only when Tls12 is the only defined security protocol in that system. so, the condition makes no sense in the code. I saw this in netbackup-api-code-samples/snippets/powershell/Get-NB-Jobs.ps1 line number 46. The same issue is with all powershell codes. Please review it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions