Skip to content

Commit

Permalink
Rubocop cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
btoneill committed Oct 14, 2024
1 parent 05b6ff9 commit bffa054
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/helpers/proxmox_vm_attrs_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def object_to_attributes_hash(vms, from_profile, start_checked)

def cpu_flags_attrs(param_scope, config)
flag_attrs = ActiveSupport::HashWithIndifferentAccess.new
Fog::Proxmox::CpuHelper.flags.each do |key, _val|
Fog::Proxmox::CpuHelper.flags.each_key do |key|
flag_attrs.merge!({ key => { :name => "#{param_scope}[config_attributes][#{key}]", :value => config.public_send(key) } })
end
flag_attrs
Expand Down
7 changes: 5 additions & 2 deletions app/helpers/proxmox_vm_volumes_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@ def parse_hard_disk_volume(args)
disk[:storage] = args['storage'].to_s if args.key?('storage') && !args['storage'].empty?
disk[:size] = args['size'].to_i if args.key?('size') && !args['size'].empty?
args['backup'] = '1' if args['backup'].nil?
add_disk_options(disk, args) unless args.key?('options')
disk[:options] = args['options'] if args.key?('options')
if args.key?('options')
disk[:options] = args['options']
else
add_disk_options(disk, args)
end
disk.key?(:storage) ? disk : {}
end

Expand Down

0 comments on commit bffa054

Please sign in to comment.