From cd75b59b3381b2f6ac64f41fa90586d6366ddd60 Mon Sep 17 00:00:00 2001 From: Billy Olsen Date: Wed, 22 Mar 2017 12:24:39 -0700 Subject: [PATCH] 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 --- ceph/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph/__init__.py b/ceph/__init__.py index 52facf8..e0098c4 100644 --- a/ceph/__init__.py +++ b/ceph/__init__.py @@ -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):