Skip to content

Fix Python version regex in install.pp#410

Merged
wyardley merged 1 commit intovoxpupuli:masterfrom
fklajn:fix_version_inconsistency
Jun 16, 2018
Merged

Fix Python version regex in install.pp#410
wyardley merged 1 commit intovoxpupuli:masterfrom
fklajn:fix_version_inconsistency

Conversation

@fklajn
Copy link
Copy Markdown
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
Comment thread manifests/install.pp
}

if "${::python::version}" =~ /^3/ { #lint:ignore:only_variable_string
if "${::python::version}" =~ /^python3/ { #lint:ignore:only_variable_string
Copy link
Copy Markdown
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