diff --git a/jlmkr.py b/jlmkr.py index c277be8..3d842a9 100755 --- a/jlmkr.py +++ b/jlmkr.py @@ -664,7 +664,7 @@ def list_jails(): List all available and running jails. """ - jails = os.listdir(JAILS_DIR_PATH) + jails = next(os.walk('jails'))[1] print("Available jails:\n") if not len(jails):