File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
app/models/foreman_fog_proxmox Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,8 @@ def update_extra_volumes_definitions(data_in)
3333 # Start to look into the data that needs to be updated
3434 volumes_attributes = { }
3535 value . each do |index , dev_specs |
36-
3736 # Only if this contains only 1 set like: {"size"=>"xxGB"}
3837 if #{index} > 0 && dev_specs.keys.count == 1
39-
4038 # Copy the data from the first entry
4139 newid = "#{ value [ '0' ] [ 'controller' ] } #{ index } "
4240 newdev = {
@@ -53,7 +51,7 @@ def update_extra_volumes_definitions(data_in)
5351 volumes_attributes [ index ] = dev_specs
5452 end
5553 end
56- # now add the (reworked) data back
54+ # Now add the (reworked) data back
5755 new_data [ 'volumes_attributes' ] = volumes_attributes
5856 end
5957 end
You can’t perform that action at this time.
0 commit comments