From b8e58b31226853566bb0dffb1178f186f996b233 Mon Sep 17 00:00:00 2001 From: Stanislaw Adaszewski Date: Mon, 27 Apr 2020 16:55:51 +0200 Subject: [PATCH] Small --- jail.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jail.py b/jail.py index 28d0921..5eee2bc 100644 --- a/jail.py +++ b/jail.py @@ -24,10 +24,10 @@ def jail_fs_create(image=None): break if image: image, _ = zfs_find(image, focker_type='image', zfs_type='snapshot') - zfs_run(['zfs', 'clone', '-o', 'focker:sha256=' + sha256, image, name]) + zfs_parse_output(['zfs', 'clone', '-o', 'focker:sha256=' + sha256, image, name]) else: print('Creating empty jail:', name) - zfs_run(['zfs', 'create', '-o', 'focker:sha256=' + sha256, name]) + zfs_parse_output(['zfs', 'create', '-o', 'focker:sha256=' + sha256, name]) return name