Direct check for key in os_release_dict #1043
Labels
GH Open Source Day
Reserved for Grace Hopper Open Source Day participants
good first issue
A good first issue to tackle if you are new to the project
WARNING
If this is your first tern contribution, please update your local git settings using these instructions.
DO NOT USE THE GITHUB UI!
When creating your commit message for your PR, make sure to use
git commit -s
rather thangit commit -m
Remember to add a
Fixes: #1043
line in your commit message.Description
The find_os_release function parses an os_release file into a dictionary so the
"PRETTY_NAME" can be extracted from it. Rather than checking for "PRETTY_NAME"
in the dictionary's keys, we iterate over the dictionary directly to improve performance.
Implementation
Make the following changes in
tern/analyze/default/container/single_layer.py
:The text was updated successfully, but these errors were encountered: