From 8c240e38a776c3ec3cf8168fb56579373c790893 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Fri, 13 Oct 2017 16:13:14 +0100 Subject: Do not create network namespace when crating chroot failed (broken by previous commit) --- lib/Iurt/Chroot.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index 9710b0f..4b14e1f 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -316,7 +316,7 @@ sub create_build_chroot { } } - if ($use_netns) { + if ($ret && $use_netns) { sudo($config, '--netns_create', $chroot); } return $ret; -- cgit v1.2.1