Update cleanup docstring

This commit is contained in:
Jip-Hop 2024-04-07 11:58:09 +02:00
parent eee3abef8e
commit a65bf03445
1 changed files with 2 additions and 2 deletions

View File

@ -750,7 +750,7 @@ def restart_jail(jail_name):
def cleanup(jail_path): def cleanup(jail_path):
""" """
Cleanup after aborted jail creation. Cleanup jail.
""" """
if os.path.isdir(jail_path): if os.path.isdir(jail_path):
# Workaround for https://github.com/python/cpython/issues/73885 # Workaround for https://github.com/python/cpython/issues/73885
@ -1248,7 +1248,7 @@ def create_jail(**kwargs):
# Create the dir where to store the jails # Create the dir where to store the jails
os.makedirs(JAILS_DIR_PATH, exist_ok=True) os.makedirs(JAILS_DIR_PATH, exist_ok=True)
stat_chmod(JAILS_DIR_PATH, 0o700) stat_chmod(JAILS_DIR_PATH, 0o700)
jail_config_path = get_jail_config_path(jail_name) jail_config_path = get_jail_config_path(jail_name)
jail_rootfs_path = get_jail_rootfs_path(jail_name) jail_rootfs_path = get_jail_rootfs_path(jail_name)