Skip to content

Commit

Permalink
fix: Don't warn on vendor directory
Browse files Browse the repository at this point in the history
  • Loading branch information
holmanb committed Feb 29, 2024
1 parent 12126f5 commit ff264eb
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.info("Not executing special file [%s]", exe_path)

if failed and attempted:
raise RuntimeError(
Expand Down

0 comments on commit ff264eb

Please sign in to comment.