diff options
author | Zuul <zuul@review.openstack.org> | 2018-04-13 04:14:31 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2018-04-13 04:14:31 +0000 |
commit | 0bc52a6036d7d18c484b013319c7b11cfb9958ca (patch) | |
tree | bcf728818d6440f1657ec439fd9ce0fcc4cd5965 /bin | |
parent | f1bbb5f980a56846b12e37686756b2a77f5fcbad (diff) | |
parent | 9d12575102556d6d24a5498d79857e0d5de148bd (diff) | |
download | swift-0bc52a6036d7d18c484b013319c7b11cfb9958ca.tar.gz |
Merge "swift-recon-cron: do not get confused by files in /srv/node"
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/swift-recon-cron | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/swift-recon-cron b/bin/swift-recon-cron index 3c939a1b2..709bd9d5e 100755 --- a/bin/swift-recon-cron +++ b/bin/swift-recon-cron @@ -29,6 +29,8 @@ def get_async_count(device_dir, logger): async_count = 0 for i in os.listdir(device_dir): device = os.path.join(device_dir, i) + if not os.path.isdir(device): + continue for asyncdir in os.listdir(device): # skip stuff like "accounts", "containers", etc. if not (asyncdir == ASYNCDIR_BASE or |