Skip to content

Commit

Permalink
fix: Don't warn on vendor directory (#4986)
Browse files Browse the repository at this point in the history
Fixes GH-4919
  • Loading branch information
holmanb committed Mar 1, 2024
1 parent 12126f5 commit 5c15e79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cloudinit/subp.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,13 +379,15 @@ def runparts(dirp, skip_no_exist=True, exe_prefix=None):
except ProcessExecutionError as e:
LOG.debug(e)
failed.append(exe_name)
else:
elif os.path.isfile(exe_path):
LOG.warning(
"skipping %s as its not executable "
"or the underlying file system is mounted without "
"executable permissions.",
exe_path,
)
else:
LOG.debug("Not executing special file [%s]", exe_path)

if failed and attempted:
raise RuntimeError(
Expand Down

0 comments on commit 5c15e79

Please sign in to comment.