-
Notifications
You must be signed in to change notification settings - Fork 899
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
Remove the Hardware#m_bios method #20258
Conversation
Checked commit https://github.com/djberg96/manageiq/commit/81b291da0c846f9c1b299fc08408af052f08833d with ruby 2.5.7, rubocop 0.69.0, haml-lint 0.28.0, and yamllint |
@@ -210,14 +210,6 @@ def m_memory(_parent, xmlNode, _deletes) | |||
self.memory_mb = xmlNode.attributes["memsize"] | |||
end | |||
|
|||
def m_bios(_parent, xmlNode, _deletes) |
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.
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.
@agrare if it was it was from before my time. I don't ever remember seeing it used.
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.
I don't recall. Are the similar routines (like m_vm
) currently used by SSA?
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.
So I think the answer to "is this used anymore" is a definite yes. There are a number of m_
methods that appear to be called by smartstate (#20258 (comment))
manageiq/app/models/hardware.rb Line 91 in 37f1c09
Found via |
@Fryguy well what would you like me to do then? |
Considering the method is used, I think you have to keep it. Unless you can show that the results from a smart state scan won't have the bios value anymore |
@djberg96 Since you're trying to get rid of |
Closing because we cannot remove the |
This is part of the ManageIQ/manageiq-gems-pending#231 effort to remove miq-uuid as a dependency anywhere except vmware.
Since this method doesn't appear to be used, let's remove it.
Cross repo tests: ManageIQ/manageiq-cross_repo-tests#140