diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2018-06-21 20:25:11 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-06-21 20:25:11 +0100 |
commit | 4aae08aee6b1f49b5fe5a76079f1cae9a75b9b6b (patch) | |
tree | b86f179b9098be303424279ba2288541ab4d1757 /tests/report_tests.py | |
parent | 2d4ab4c925d8283b3e04846e9e4bd8da1783031a (diff) | |
download | sos-4aae08aee6b1f49b5fe5a76079f1cae9a75b9b6b.tar.gz |
[fibrechannel] fix list comprehension filter scope
The 'devs' list comprehension generates a list of present FC sysfs
paths by filtering a list of possible directory paths with isdir().
The isdir() test must be on the outer ('for d in dirs') scope
rather than the inner: otherwise listdir() may be called with a
non-existent directory.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'tests/report_tests.py')
0 files changed, 0 insertions, 0 deletions