diff options
Diffstat (limited to 'cloudinit/util.py')
-rw-r--r-- | cloudinit/util.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py index deb4b33b..64007211 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -238,7 +238,9 @@ def logexc(log,lvl=logging.DEBUG): class RecursiveInclude(Exception): pass -def read_file_with_includes(fname, rel = ".", stack=[], patt = None): +def read_file_with_includes(fname, rel = ".", stack=None, patt = None): + if stack is None: + stack = [] if not fname.startswith("/"): fname = os.sep.join((rel, fname)) |