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

(FACT-2806) Fix os.release.minor on amazon 6 #2133

Merged
merged 1 commit into from
Oct 13, 2020

Conversation

florindragos
Copy link
Contributor

We don't need to remove leading 0 for minor versions on rhel.

We don't need to remove leading 0 for minor versions on rhel
@florindragos florindragos added the bug Something isn't working label Oct 12, 2020
@florindragos florindragos requested review from a team October 12, 2020 11:06
@oanatmaria
Copy link
Contributor

Jenkins please test this on all

@@ -27,7 +27,7 @@ def determine_release_version
fact_value = {}
fact_value['full'] = version
fact_value['major'] = versions[0]
fact_value['minor'] = versions[1].gsub(/^0([1-9])/, '\1') if versions[1]
fact_value['minor'] = versions[1] if versions[1]
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any test for the scenario that this change is fixing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no. from what we can tell at this moment, this code was copy-pasted from the debian os.release fact when the rhel fact was first written. it was not suppose to be there in the first place and it appears to be affecting only amazon 6.

@puppetcla
Copy link

CLA signed by all contributors.

@Filipovici-Andrei Filipovici-Andrei merged commit 3ac9b19 into puppetlabs:main Oct 13, 2020
Filipovici-Andrei pushed a commit to Filipovici-Andrei/facter that referenced this pull request Oct 15, 2020
We don't need to remove leading 0 for minor versions on rhel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants