Skip to content

Instantly share code, notes, and snippets.

@timogoebel
Last active April 25, 2018 07:48
Show Gist options
  • Select an option

  • Save timogoebel/d2e4ac9c51e495531b15815058cce927 to your computer and use it in GitHub Desktop.

Select an option

Save timogoebel/d2e4ac9c51e495531b15815058cce927 to your computer and use it in GitHub Desktop.
diff --git a/app/controllers/concerns/foreman/controller/normalize_scsi_attributes.rb b/app/controllers/concerns/foreman/controller/normalize_scsi_attributes.rb
index 4a4685c80..e8f0a6890 100644
--- a/app/controllers/concerns/foreman/controller/normalize_scsi_attributes.rb
+++ b/app/controllers/concerns/foreman/controller/normalize_scsi_attributes.rb
@@ -9,7 +9,7 @@ module Foreman::Controller::NormalizeScsiAttributes
deep_symbolize_keys
volumes = {}
scsi_and_vol[:volumes].each_with_index do |vol, index|
- volumes[index.to_s] = vol
+ volumes[index.to_s] = vol.except(:key)
end
attrs["scsi_controllers"] = scsi_and_vol[:scsi_controllers]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment