commit | 6fbb5c08ca192c8e8b528d2ef143f09f9ea458e5 | [log] [tgz] |
---|---|---|
author | Dzmitry Stremkouski <dstremkouski@mirantis.com> | Sat Jul 21 08:33:56 2018 +0200 |
committer | Dzmitry Stremkouski <dstremkouski@mirantis.com> | Sat Jul 21 08:33:59 2018 +0200 |
tree | b46b8a68a2e702dbcc239956866615e0f0529f4a | |
parent | 6f1b3a3e72322e71582459d6efdb267a0dbc9f4a [diff] |
Skip unlinked mountpoints (broken network fs endpoints) Change-Id: I49baac7e65584d391f8de99fa90ddcbb1aeb6bba
diff --git a/_modules/auditd.py b/_modules/auditd.py index d5445a8..f2b6a84 100644 --- a/_modules/auditd.py +++ b/_modules/auditd.py
@@ -39,6 +39,8 @@ fpath = os.path.join(root, fname) if os.path.islink(fpath): continue + if not os.path.exists(fpath): + continue mode = os.stat(fpath).st_mode if (mode & e_bits) and (mode & s_bits): yield fpath