Fix typo when listing dirs

The directory listing incorrectly uses os.path.listdir but the
correct call is os.listdir.

Change-Id: I2fe87c8a007cfdb0d54395e78597c98647cb661c
Related-Bug: #1662591
This commit is contained in:
Billy Olsen 2017-03-22 12:24:39 -07:00
parent fd3fad022d
commit cd75b59b33
1 changed files with 1 additions and 1 deletions

View File

@ -561,7 +561,7 @@ def _get_child_dirs(path):
if not os.path.isdir(path):
raise ValueError('Specified path "%s" is not a directory' % path)
return filter(os.path.isdir, os.path.listdir(path))
return filter(os.path.isdir, os.listdir(path))
def _get_osd_num_from_dirname(dirname):