aboutsummaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2018-06-21 20:25:11 +0100
committerBryn M. Reeves <bmr@redhat.com>2018-06-21 20:25:11 +0100
commit4aae08aee6b1f49b5fe5a76079f1cae9a75b9b6b (patch)
treeb86f179b9098be303424279ba2288541ab4d1757 /.gitignore
parent2d4ab4c925d8283b3e04846e9e4bd8da1783031a (diff)
downloadsos-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 '.gitignore')
0 files changed, 0 insertions, 0 deletions