Skip to content

Commit

Permalink
Merge branch 'stdietrich-exclude_root_socket'
Browse files Browse the repository at this point in the history
  • Loading branch information
southalc committed Nov 3, 2023
2 parents 6d3a7ff + 3f99fca commit 879f17f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/facter/podman.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
Dir.glob('/run/user/*/podman/podman.sock') do |path|
next unless File.exist?(path)
uid = path.split(File::SEPARATOR)[3].to_i

next if uid == 0
val['socket'] = {} if val['socket'].nil?
val['socket'][Etc.getpwuid(uid)[:name]] = path
end
Expand Down

0 comments on commit 879f17f

Please sign in to comment.