Use Python::Version as type for puppetboard::python_version #398
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request (PR) description
In RHEL/Rocky 9 the system version of python (
python3
package name) is Python 3.9 version. Trying to use3.9
forpuppetboard::python_version
yields an error that it can't find that package. Also available is python 3.11 with a package name ofpython-3.11
. Because of the existing regexes in both this module and the python module, i wasn't able to come up with a value forpuppetboard::python_version
that would allow me to execute with either of those.Instead this PR simply utilizes the
Python::Version
type, because that is what the python module uses as its regex verification. Now, we're consistent with what that module uses since it's the actual version spec that matters since we ultimately passpuppetboard::python_version
down into the python module anyways.