Skip to content
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

Made the new templating system work with Python2.6. #4897

Merged
merged 1 commit into from
Oct 7, 2019

Conversation

matejak
Copy link
Member

@matejak matejak commented Oct 4, 2019

Python 2.6 doesn't allow dict comprehensions.
Also the package_gcc_installed rule has been removed, as it was introduced for demonstration purposes only and the unquoted YAML bool causes problems on Python2.

@jan-cerny jan-cerny self-assigned this Oct 4, 2019
@jan-cerny jan-cerny added this to the 0.1.47 milestone Oct 4, 2019
ssg/templates.py Outdated
uppercases = dict()
for k, v in parameters.items():
uppercases[k.upper()] = v
parameters.update(uppercases)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to return uppercases right away.

@konstruktoid
Copy link
Contributor

Why support python2.6?
https://pythonclock.org/

@jan-cerny
Copy link
Collaborator

@konstruktoid Because Red Hat Enterprise Linux 6 has only Python 2.6, and we still support building on RHEL6.

@matejak
Copy link
Member Author

matejak commented Oct 4, 2019

I have rebased, so no more updating of the dict with uppercase keys - now only the uppercase dict is returned.

@jan-cerny jan-cerny merged commit 42e7dd1 into ComplianceAsCode:master Oct 7, 2019
@matejak matejak deleted the new_templates_rhel6 branch October 9, 2019 11:45
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants