Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for problem that files like bonding_masters are not skipped #733

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading