-
Notifications
You must be signed in to change notification settings - Fork 449
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
Add additional SUSE and openSUSE platforms - micro, hpc #1753
Conversation
lib/ohai/plugins/linux/platform.rb
Outdated
@@ -149,7 +149,7 @@ def platform_family_from_platform(plat) | |||
"rhel" | |||
when /amazon/ | |||
"amazon" | |||
when /suse/, /sles/, /opensuseleap/, /opensuse/, /sled/ | |||
when /suse/, /sles/, /opensuseleap/, /opensuse-tumbleweed/, /opensuse-leap-micro/, /opensuse-microos/, /suse-microos/, /opensuse/, /sled/, /sle_hpc/, /sle_rt/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
woudl be nice to be able to remove these 'platform_id_remaps' and add them here instead
opensuse-leap" => "opensuseleap"
sles_sap" => "suse"
looks like this could potentially break if recipes depend on this remapping tho
@jamesongithub can you please sign your commit too by adding a "signed_by" tag (or git commit -sm "foo") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are redundant.
lib/ohai/plugins/linux/platform.rb
Outdated
@@ -149,7 +149,7 @@ def platform_family_from_platform(plat) | |||
"rhel" | |||
when /amazon/ | |||
"amazon" | |||
when /suse/, /sles/, /opensuseleap/, /opensuse/, /sled/ | |||
when /suse/, /sles/, /opensuseleap/, /opensuse-tumbleweed/, /opensuse-leap-micro/, /opensuse-microos/, /suse-microos/, /opensuse/, /sled/, /sle-hpc/, /sle_hpc/, /sle_rt/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/opensuse/
and /suse/
catch most of these.
when /suse/, /sles/, /opensuseleap/, /opensuse-tumbleweed/, /opensuse-leap-micro/, /opensuse-microos/, /suse-microos/, /opensuse/, /sled/, /sle-hpc/, /sle_hpc/, /sle_rt/ | |
# suse matches opensuse, suse-* opensuse-*, etc. | |
when /suse/, /sle[sd-_]/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh didn't know this was regex, updated. thx
i signed it. i guess this just checks the last commit? |
would it be possible remove this: ohai/lib/ohai/plugins/linux/platform.rb Line 122 in a67a053
could break existing recipes, but wondering how many of them rely on this.. as is we can't use |
it checks all commits. Every line of code requires you to attest you own it and can give it away :) |
Signed-off-by: [email protected] <[email protected]>
Signed-off-by: [email protected] <[email protected]>
Signed-off-by: [email protected] <[email protected]>
Kudos, SonarCloud Quality Gate passed!
|
kk, think they are all signed now |
thoughts? |
Description
Add additional platforms.
Related Issue
Types of changes
Checklist: