Skip to content

Commit

Permalink
Fix for problem that files like bonding_masters are not skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidax authored Jul 16, 2024
1 parent 14719c5 commit 6c2909a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions agents/plugins/lnx_container_host_if.linux
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ section_lnx_container_host_if() {

for if_path in "${interface_filepath}"/*; do

# Directory does not exist or is empty
[ -e "${if_path}" ] || continue
# Check if Path is a directory, if not continue
[ -d "${if_path}" ] || continue
# Check if directory is empty, if true continue
[ -n "$(ls -A ${if_path})" ] || continue

printf "name\v%s\t" "$(basename "${if_path}")"
__read_network_interface_files "${if_path}" "${network_interface_metadata}"
Expand Down

0 comments on commit 6c2909a

Please sign in to comment.