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:
Jordan Borean 2018-02-22 11:33:48 +10:00 committed by GitHub
commit ef4f8851dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 86 additions and 151 deletions

View file

@ -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