Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DscSecurityOption: Ensure that Get returns name (#159)
* DscSecurityOption: Ensure that Get returns name Prior to this commit, invoking the SecurityPolicy resource with the Get method would always return $Null for the Name property; though this property is itself never used by the resource, integrating tools are unable to tell as the Name property is also the Key (as defined in the MOF) for this resource; meaning when comparing the existing state of the resource it will always cause a mismatch between the specified Name and the "actual" representation of the resource on the machine, as reported by the Get-TargetResource function. This commit modifies the Get-TargetResource function for the SecurityPolicy DSC resource to always return the specified Name for the resource in order to prevent churn in secondary tools such as Puppet, Ansible, or Chef. This mirrors the change in #152 to AccountPolicy. * (MAINT) Update capitalization for PSSA This commit downcases the default keyword in several files to obviate a failing test case in PSSA relating to the following link: https://github.com/PowerShell/DscResources/blob/master/StyleGuidelines.md#correct-format-for-keywords Co-authored-by: Gael <gaelcolas@users.noreply.github.com>
- Loading branch information