-
Notifications
You must be signed in to change notification settings - Fork 125
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
saving the response to file on MacOS add random characters #210
Comments
[ESC][0;36mgood.com[ESC][0;0m: |
These chars are probably the definition of colors? |
@gtmanfred Can you take a look at why Line 113 in ee498f8
https://stackoverflow.com/questions/6159900/correct-way-to-write-line-to-file Thank you. |
I do not know why print was used here, probably just to be consistent across the board. I also do not know why it would be putting those escape codes. Also I am no longer involved with maintaining the any projects in the salt community @mattp- might be able to help you. Otherwise you can try joining the saltstack slack or irc and ask there. |
pepper/pepper/script.py
Line 113 in ee498f8
This line saves the response to a local file. My code calls this method but it adds some bad chars on MacOS (Macbook). The Windows machine has no issue. The additional bad chars are like: “0;36m”
The text was updated successfully, but these errors were encountered: