diff options
author | Bryan Quigley <bryan.quigley@canonical.com> | 2018-07-02 16:48:21 -0400 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-07-12 14:38:53 +0100 |
commit | 4127d02f00561b458398ce2b5ced7ae853b23227 (patch) | |
tree | e55fd0a4b0aae2ce6584c327455ad1651a34aba7 | |
parent | 7b475f1da0f843b20437896737be04cc1c7bbc0a (diff) | |
download | sos-4127d02f00561b458398ce2b5ced7ae853b23227.tar.gz |
[archive] fix stat typo
They're just missing the S_ in front of them so if that code gets
reached it fails.
Fixes: #1373
Resolves: #1374
Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/archive.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sos/archive.py b/sos/archive.py index 263e3dd3..fdf6f9a8 100644 --- a/sos/archive.py +++ b/sos/archive.py @@ -204,10 +204,10 @@ class FileCacheArchive(Archive): def is_special(mode): return any([ - stat.ISBLK(mode), - stat.ISCHR(mode), - stat.ISFIFO(mode), - stat.ISSOCK(mode) + stat.S_ISBLK(mode), + stat.S_ISCHR(mode), + stat.S_ISFIFO(mode), + stat.S_ISSOCK(mode) ]) if force: |