Skip to content

Commit

Permalink
fix: Don't warn on vendor directory (canonical#4986)
Browse files Browse the repository at this point in the history
  • Loading branch information
holmanb committed Mar 6, 2024
1 parent 34bc44e commit eb43fed
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 eb43fed

Please sign in to comment.