Skip to content

Commit

Permalink
Fixes filtering of lxc container nics options
Browse files Browse the repository at this point in the history
  • Loading branch information
Manisha15 committed Jul 29, 2024
1 parent 5b84235 commit bb79f23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/fog/proxmox/helpers/nic_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ def self.flatten(nic_hash)
end
nic_value += ',' + Fog::Proxmox::Hash.stringify(options) unless options.empty?
else
nic_value = Fog::Proxmox::Hash.stringify(nic_hash.except(%i[id model macaddr])) unless nic_hash.empty?
options = nic_hash.reject do |key, _value|
[:id, :model, :macaddr].include? key.to_sym
end
nic_value = Fog::Proxmox::Hash.stringify(options) unless options.empty?
end
{ "#{nic_hash[:id]}": nic_value }
end
Expand Down

0 comments on commit bb79f23

Please sign in to comment.