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 5b84235 commit 3f27983Copy full SHA for 3f27983
lib/fog/proxmox/helpers/nic_helper.rb
@@ -106,7 +106,10 @@ def self.flatten(nic_hash)
106
end
107
nic_value += ',' + Fog::Proxmox::Hash.stringify(options) unless options.empty?
108
else
109
- nic_value = Fog::Proxmox::Hash.stringify(nic_hash.except(%i[id model macaddr])) unless nic_hash.empty?
+ options = nic_hash.reject do |key, _value|
110
+ %i[id model macaddr].include? key.to_sym
111
+ end
112
+ nic_value = Fog::Proxmox::Hash.stringify(options) unless options.empty?
113
114
{ "#{nic_hash[:id]}": nic_value }
115
0 commit comments