Skip to content

Commit ddc98e9

Browse files
author
Kees van Veen
committed
more updates, thanks to Manisha
1 parent 67e7724 commit ddc98e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/models/foreman_fog_proxmox/proxmox_volumes.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def update_extra_volumes_definitions(data_in)
3434
volumes_attributes = {}
3535
value.each do |index, dev_specs|
3636
# Only if this contains only 1 set like: {"size"=>"xxGB"}
37-
if #{index} > 0 && dev_specs.keys.count == 1
37+
if index > 0 && dev_specs.keys.count == 1
3838
# Copy the data from the first entry
3939
newid = "#{value['0']['controller']}#{index}"
4040
newdev = {
@@ -55,7 +55,6 @@ def update_extra_volumes_definitions(data_in)
5555
new_data['volumes_attributes'] = volumes_attributes
5656
end
5757
end
58-
return new_data
5958
end
6059

6160
def delete_volume(vm, id, volume_attributes)

0 commit comments

Comments
 (0)