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/DataSource.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/DataSource.py')
-rw-r--r-- | cloudinit/DataSource.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cloudinit/DataSource.py b/cloudinit/DataSource.py index bdcac4ef..623f96b6 100644 --- a/cloudinit/DataSource.py +++ b/cloudinit/DataSource.py @@ -157,7 +157,9 @@ class DataSource: # ie, pkglist=[ "foo", "" ] # will first try to load foo.DataSource<item> # then DataSource<item> -def list_sources(cfg_list, depends, pkglist=[]): +def list_sources(cfg_list, depends, pkglist=None): + if pkglist is None: + pkglist = [] retlist = [] for ds_coll in cfg_list: for pkg in pkglist: |