mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
win_feature: better error handling to make it easier to debug issues (#36491)
* win_feature: better error handling to make it easier to debug issues * removed ignroed pslint rules that are no longer needed
This commit is contained in:
@@ -127,8 +127,7 @@
|
||||
that:
|
||||
- "win_feature_install_invalid_result is failed"
|
||||
- "win_feature_install_invalid_result is not changed"
|
||||
- "win_feature_install_invalid_result.msg"
|
||||
- "win_feature_install_invalid_result.exitcode == 'InvalidArgs'"
|
||||
- "'The name was not found' in win_feature_install_invalid_result.msg"
|
||||
when: win_feature_has_servermanager is successful
|
||||
|
||||
- name: try to remove an invalid feature name
|
||||
@@ -144,6 +143,5 @@
|
||||
that:
|
||||
- "win_feature_remove_invalid_result is failed"
|
||||
- "win_feature_remove_invalid_result is not changed"
|
||||
- "win_feature_remove_invalid_result.msg"
|
||||
- "win_feature_remove_invalid_result.exitcode == 'InvalidArgs'"
|
||||
- "'The name was not found' in win_feature_remove_invalid_result.msg"
|
||||
when: win_feature_has_servermanager is successful
|
||||
|
||||
@@ -64,9 +64,6 @@ lib/ansible/modules/windows/win_dsc.ps1 PSAvoidUsingEmptyCatchBlock
|
||||
lib/ansible/modules/windows/win_dsc.ps1 PSPossibleIncorrectComparisonWithNull
|
||||
lib/ansible/modules/windows/win_dsc.ps1 PSUseApprovedVerbs
|
||||
lib/ansible/modules/windows/win_eventlog.ps1 PSUseDeclaredVarsMoreThanAssignments
|
||||
lib/ansible/modules/windows/win_feature.ps1 PSAvoidUsingCmdletAliases
|
||||
lib/ansible/modules/windows/win_feature.ps1 PSAvoidUsingInvokeExpression
|
||||
lib/ansible/modules/windows/win_feature.ps1 PSUseDeclaredVarsMoreThanAssignments
|
||||
lib/ansible/modules/windows/win_file.ps1 PSPossibleIncorrectComparisonWithNull
|
||||
lib/ansible/modules/windows/win_file_version.ps1 PSUseBOMForUnicodeEncodedFile
|
||||
lib/ansible/modules/windows/win_find.ps1 PSAvoidUsingEmptyCatchBlock
|
||||
|
||||
Reference in New Issue
Block a user