salt
                                
                                 salt copied to clipboard
                                
                                    salt copied to clipboard
                            
                            
                            
                        Fix grains metadata on EC2
What does this PR do?
Fixes issue with grains.get meta-data and gzipped meta-data on AWS EC2
What issues does this PR fix or reference?
Fixes: #59541
Previous Behavior
salt crashes
New Behavior
salt continues to work and adds valuable meta-data to grains
Merge requirements satisfied?
[NOTICE] Bug fixes or features added to Salt require tests.
- [ ] Docs
- [ ] Changelog - https://docs.saltproject.io/en/master/topics/development/changelog.html
- [ ] Tests written/updated
Commits signed with GPG?
No
Please review Salt's Contributing Guide for best practices.
See GitHub's page on GPG signing for more information about signing commits with GPG.
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey. Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
- Community Wiki
- Salt’s Contributor Guide
- Join our Community Slack
- IRC on LiberaChat
- Salt Project YouTube channel
- Salt Project Twitch channel
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!
Hi @gtmanfred
Could you kindly take a look at this?
Thank you
bump @tomdoherty did you see my review comments?
Hi! I'm your friendly PR bot!
You might be wondering what I'm doing commenting here on your PR.
Yes, as a matter of fact, I am...
I'm just here to help us improve the documentation. I can't respond to questions or anything, but what I can do, I do well!
Okay... so what do you do?
I detect modules that are missing docstrings or "CLI Example" on existing docstrings! When I was created we had a lot of these. The documentation for these modules need some love and attention to make Salt better for our users.
So what does that have to do with my PR?
I noticed that in this PR there are some files changed that have some of these issues. So I'm leaving this comment to let you know your options.
Okay, what are they?
Well, my favorite, is that since you were making changes here I'm hoping that you would be the most familiar with this module and be able to add some other examples or fix any of the reported issues.
If I can, then what?
Well, you can either add them to this PR or add them to another PR. Either way is fine!
Well... what if I can't, or don't want to?
That's also fine! We appreciate all contributions to the Salt Project. If you can't add those other examples, either because you're too busy, or unfamiliar, or you just aren't interested, we still appreciate the contributions that you've made already.
Whatever approach you decide to take, just drop a comment here letting us know!
Detected Issues (click me)
Check Known Missing Docstrings...........................................Failed - hook id: invoke - duration: 1.35s - exit code: 1The function 'metadata' on 'salt/grains/metadata.py' does not have a docstring Found 1 errors
Thanks again!
Thanks for approving this @Ch3LL! When can we expect it to make it into a release?
The only 3 remaining items is:
- Get two more approvals. Since this PR does not have test coverage 2 other core members have to approve it not having test coverage. I have requested the other reviews.
- Tests pass
- Then we can merge and it will be included in the 3005 release if merged in before April 11th.
Wonderful! Thanks for all the help with this
Question: this definitely appears to be a fix, but is it the best fix?
Is it possible to check the headers and detect that the content is gzipped and un-gzip it? Is that something we're doing elsewhere?
bump @tomdoherty did you see @waynew 's comment?
closing due to inactivity. Please let me know if this needs to be re-opened or open a new PR with a response to @waynew 's feedback.