Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

(FACT-2530) Fix for tests/facts/os_processors_and_kernel.rb #449

Merged
merged 4 commits into from
Apr 29, 2020

Conversation

oanatmaria
Copy link
Contributor

Description of the problem: On Ubuntu os.release should be {full: 18.04, major: 18.04} instead of {full: 18.04, major: 18, minor: 4}(as. it is currently). On Sles release should be padded with 0: 15.0 instead of 15. On Aix and Solaris processors fact is missing.
Fix description: Fixed release on ubuntu and sles. Aix and Solaris facts will be added with a different PR.

@oanatmaria oanatmaria requested review from a team April 14, 2020 09:48
@oanatmaria oanatmaria added the bugfix Something isn't working label Apr 14, 2020
@@ -36,6 +36,7 @@ def read_os_release_file(fact_name)

fill_fact_list(pairs)
process_name
alter_version_id
Copy link
Contributor

Choose a reason for hiding this comment

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

I would rename this to pad_version_id. Alter is very generic.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@BogdanIrimie BogdanIrimie merged commit 186120f into master Apr 29, 2020
@BogdanIrimie BogdanIrimie deleted the FACT-2530 branch April 29, 2020 14:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bugfix Something isn't working
Projects
None yet
3 participants