Only list subdirectories (not files)
This commit is contained in:
parent
5193085ad3
commit
2de050c0b1
2
jlmkr.py
2
jlmkr.py
|
@ -664,7 +664,7 @@ def list_jails():
|
||||||
List all available and running jails.
|
List all available and running jails.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
jails = os.listdir(JAILS_DIR_PATH)
|
jails = next(os.walk('jails'))[1]
|
||||||
|
|
||||||
print("Available jails:\n")
|
print("Available jails:\n")
|
||||||
if not len(jails):
|
if not len(jails):
|
||||||
|
|
Loading…
Reference in New Issue