Skip to content

Commit

Permalink
[fix] detect only containers exclude another like lost+found
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Nov 26, 2014
1 parent 38fbddf commit ff11329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxclite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def ls():

try:
ct_list = [x for x in os.listdir(base_path)
if os.path.isdir(os.path.join(base_path, x))]
if os.path.isdir(os.path.join(base_path, x)) and os.path.exists(os.path.join(base_path, x, 'config'))]
except OSError:
ct_list = []

Expand Down

0 comments on commit ff11329

Please sign in to comment.