From 2ce1c71664d4e3f74e02159466580eba8bd0b8f6 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Fri, 23 Jul 2010 10:40:44 +0200 Subject: [PATCH] [molecule.utils] exec_chroot_cmd: tweak default args --- molecule/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/molecule/utils.py b/molecule/utils.py index 014beaf..f58f5b5 100644 --- a/molecule/utils.py +++ b/molecule/utils.py @@ -51,7 +51,9 @@ def exec_cmd(args): # wildcards automatically ==> rsync no workie return subprocess.call(' '.join(args), shell = True) -def exec_chroot_cmd(args, chroot, pre_chroot = []): +def exec_chroot_cmd(args, chroot, pre_chroot = None): + if pre_chroot is None: + pre_chroot = [] pid = os.fork() if pid == 0: os.chroot(chroot)