From 5c15e7997da1e3de3c8f3322fc56a3974079ca68 Mon Sep 17 00:00:00 2001 From: Brett Holman Date: Thu, 29 Feb 2024 17:09:59 -0700 Subject: [PATCH] fix: Don't warn on vendor directory (#4986) Fixes GH-4919 --- cloudinit/subp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cloudinit/subp.py b/cloudinit/subp.py index ca8be1057b9..c94b44e7db1 100644 --- a/cloudinit/subp.py +++ b/cloudinit/subp.py @@ -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(