diff options
-rw-r--r-- | cloudinit/util.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py index 8f50147d..68ce674e 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -134,6 +134,9 @@ def getkeybyid(keyid,keyserver): def runparts(dirp, skip_no_exist=True): if skip_no_exist and not os.path.isdir(dirp): return + # per bug 857926, Fedora's run-parts will exit failure on empty dir + if os.path.isdir(dirp) and os.listdir(dirp) == []: return + cmd = [ 'run-parts', '--regex', '.*', dirp ] sp = subprocess.Popen(cmd) sp.communicate() |