Closed ctramnitz closed 6 years ago
Yeah, might be something with the new dnf support. You can cheat by setting the python_version
to ''
and using the package_name
option to select the right package.
This symptom is manifesting on CentOS 7 as of the yum rework prior to Chef 14 release. I added a workaround in local dev, and, while it's not optimal, it gets me through my integration runs:
case node['platform_family']
when 'debian', 'ubuntu'
python_runtime '2' do
provider :system
end
when 'rhel'
python_runtime '0:2' do
provider :system
end
end
To me, this suggests that the epoch is now causing sadness and confusion, as, as far as I can tell, I should not need to have this case statement in typical use.
Fixed in poise-languages 2.1.2.
I use the quick start method with some slight adjustments:
This works fine on CentOS 7.
However using the same recipe on Fedora 27 (that has both python27 and python36 already installed) I get:
Is the epoch ("0:") confusing poise-python to a point where it thinks 2.7.14 does not match '2'?