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:
parent
fd3fad022d
commit
cd75b59b33
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue