diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-01-12 16:55:45 +0100 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-01-12 16:55:45 +0100 |
commit | 38f913377554f27159171a505b5805ee2537a905 (patch) | |
tree | d700c8cde638f7ae26a2facfc414f826305bad5b /cloudinit/util.py | |
parent | 8b795f21caa5758138bb19a4f0412b80b6db9c99 (diff) | |
download | vyos-cloud-init-38f913377554f27159171a505b5805ee2537a905.tar.gz vyos-cloud-init-38f913377554f27159171a505b5805ee2537a905.zip |
[PATCH 10/13] Fix pylint warnings W0102 (dangerous default value as
From: Juerg Haefliger <juerg.haefliger@hp.com>
argument)
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)) |