Skip to content

Commit

Permalink
fixing cops
Browse files Browse the repository at this point in the history
  • Loading branch information
malikparvez authored Nov 27, 2024
1 parent eb9bed3 commit d25e329
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/facter/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ def interfaces
inspect = JSON.parse(Facter::Core::Execution.execute("#{docker_command} network inspect #{network}", timeout: 90))
docker['network'][network] = inspect[0]
network_id = if docker['network'][network]['Id'].nil?
docker['network'][network]['id'][0..11]
else
docker['network'][network]['Id'][0..11]
end
docker['network'][network]['id'][0..11]
else
docker['network'][network]['Id'][0..11]
end
interfaces.each do |iface|
docker['network']['managed_interfaces'][iface] = network if %r{#{network_id}}.match?(iface)
end
Expand Down

0 comments on commit d25e329

Please sign in to comment.