We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67e7724 commit ddc98e9Copy full SHA for ddc98e9
app/models/foreman_fog_proxmox/proxmox_volumes.rb
@@ -34,7 +34,7 @@ def update_extra_volumes_definitions(data_in)
34
volumes_attributes = {}
35
value.each do |index, dev_specs|
36
# Only if this contains only 1 set like: {"size"=>"xxGB"}
37
- if #{index} > 0 && dev_specs.keys.count == 1
+ if index > 0 && dev_specs.keys.count == 1
38
# Copy the data from the first entry
39
newid = "#{value['0']['controller']}#{index}"
40
newdev = {
@@ -55,7 +55,6 @@ def update_extra_volumes_definitions(data_in)
55
new_data['volumes_attributes'] = volumes_attributes
56
end
57
58
- return new_data
59
60
61
def delete_volume(vm, id, volume_attributes)
0 commit comments