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/CloudConfig/cc_apt_update_upgrade.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/CloudConfig/cc_apt_update_upgrade.py')
-rw-r--r-- | cloudinit/CloudConfig/cc_apt_update_upgrade.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cloudinit/CloudConfig/cc_apt_update_upgrade.py b/cloudinit/CloudConfig/cc_apt_update_upgrade.py index d466f3c4..0cbe02d4 100644 --- a/cloudinit/CloudConfig/cc_apt_update_upgrade.py +++ b/cloudinit/CloudConfig/cc_apt_update_upgrade.py @@ -131,7 +131,9 @@ def generate_sources_list(codename, mirror): # srclist is a list of dictionaries, # each entry must have: 'source' # may have: key, ( keyid and keyserver) -def add_sources(srclist, searchList={ }): +def add_sources(srclist, searchList=None): + if searchList is None: + searchList = {} elst = [] for ent in srclist: |