-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error stream parsing #220
Comments
There was alot of work in winrm v2 to make powershell stderr MUCH better. For example, on v2 the above stderr would now be:
So no more crazy XML output. |
We tried to make stderr the same as what you would see in straight up powershell. We may have missed some edge cases so please file issues if you see unexpected results. Definitely try out inspec/train#122 against inspec and see if that produces the desired output for the above spec. |
I currently run the InSpec integration tests inspec/inspec#1018 with inspec/train#122 |
Oh I should have included this too:
So stdout is now empty. |
@mwrock stdout is no issue. I was only discussing about |
oh ok. Are these specs in inpec? I can take a look. |
Those are included in https://github.com/chef/inspec/blob/master/test/integration/default/powershell_spec.rb#L38-L41. To test it, you would need the inspec/inspec#1018 |
cool. will have a look now |
I should have read the spec above more closely. So it sounds like what you are looking for is to have stderr equal the message spit out from
Then you'd see err from |
@mwrock Alright. Got you. I'll update the integration tests to expect the full error string. |
The |
I think you could find the message that hase a |
Awesome project! We are using it heavily in InSpec and I would like to implement the following for Windows and InSpec:
Since the error message is not parsed, I get the following error:
Do you have any good idea, how we can improve that?
The text was updated successfully, but these errors were encountered: