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

Fix Python version regex in install.pp #410

Merged
merged 1 commit into from
Jun 16, 2018

Conversation

fklajn
Copy link
Contributor

@fklajn fklajn commented Jun 12, 2018

According to the rest of the code version (if custom) is expected
to contain package name with version.

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

According to the rest of the code `version` (if custom) is expected
to contain package name with version.
@wyardley wyardley self-requested a review June 16, 2018 14:50
@@ -215,7 +215,7 @@
}
}

if "${::python::version}" =~ /^3/ { #lint:ignore:only_variable_string
if "${::python::version}" =~ /^python3/ { #lint:ignore:only_variable_string
Copy link
Contributor

Choose a reason for hiding this comment

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

I see the lint ignore, but wonder if there's any reason this can't / shouldn't just be
if $python::version =~ /^python3/

@wyardley wyardley merged commit c556f13 into voxpupuli:master Jun 16, 2018
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.

2 participants