-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#221) Inconsistent Logic in xWebsite
The Test-TargetResource function in the xWebSite resource used inconsistent logic in the way that it would test a property for compliance and then report non-compliance. Some tests would use the `$PSBoundParameters` variable to check for parameters to be tested, others would use `[String]::isNullOrEmpty()` Some tests would set the `$inDesiredState` variable, write a verbose message and move on, and others would write the verbose message and use the `return` keyward to immediately exit the function and stop testing additional properties. The desired style should use `$PSBoundParameters` and the `$inDesiredState` variable consistently, so that all properties are tested for troubleshooting purposes, and to promote conciseness and reasability Resolves #221
- Loading branch information
1 parent
89dfe48
commit bd4dab4
Showing
2 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters