Skip to content

Commit

Permalink
Replace MiqUUID with Digest::UUID.
Browse files Browse the repository at this point in the history
  • Loading branch information
djberg96 committed Jul 31, 2020
1 parent e0b8557 commit ad04a52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/hardware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,10 @@ def m_memory(_parent, xmlNode, _deletes)
end

def m_bios(_parent, xmlNode, _deletes)
new_bios = MiqUUID.clean_guid(xmlNode.attributes["bios"])
new_bios = Digest::UUID.clean(xmlNode.attributes["bios"])
self.bios = new_bios.nil? ? xmlNode.attributes["bios"] : new_bios

new_bios = MiqUUID.clean_guid(xmlNode.attributes["location"])
new_bios = Digest::UUID.clean(xmlNode.attributes["location"])
self.bios_location = new_bios.nil? ? xmlNode.attributes["location"] : new_bios
end

Expand Down

0 comments on commit ad04a52

Please sign in to comment.