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)