Skip to content

Commit

Permalink
Merge pull request #15252 from agrare/save_ems_attributes_in_save_inv…
Browse files Browse the repository at this point in the history
…entory

Allow updates to the ems to be sent with the hashes
  • Loading branch information
blomquisg authored Jun 28, 2017
2 parents 7a43f09 + 69f2bec commit 7bbd86d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/ems_refresh/save_inventory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ def save_ems_inventory(ems, hashes, target = nil, disconnect = true)
when ManageIQ::Providers::StorageManager then save_ems_storage_inventory(ems, hashes, target)
when ManageIQ::Providers::DatawarehouseManager then save_ems_datawarehouse_inventory(ems, hashes, target)
end

# Handle updates to the ext_management_system
update_attributes!(ems, hashes[:ems], [:type]) unless hashes[:ems].nil?
end

def save_ems_inventory_no_disconnect(ems, hashes, target = nil)
Expand Down

0 comments on commit 7bbd86d

Please sign in to comment.