Skip to content

Not correctly checking for EnableBlockDelete in bestpracticechecker.ps1 #5

@heydonms

Description

@heydonms

The value field is extracted from the returned object when the variable is set but the next line attempts to access .value.
This results in the test succeeding even when the EnableBlockDelete setting is turned off.

$enableblockdelete = ($esx | Get-AdvancedSetting -Name VMFS3.EnableBlockDelete).Value
if ($enableblockdelete .Value -eq 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions