diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-09-28 11:06:16 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-09-28 11:06:16 -0700 |
commit | 332ef83d77853714b88358de301bda30e82aaf62 (patch) | |
tree | 30d9e242829c3b321040882b4391eefdc4af4753 /cloudinit | |
parent | 68114a57d776585865056ad5fb71d41bb741cd06 (diff) | |
download | vyos-cloud-init-332ef83d77853714b88358de301bda30e82aaf62.tar.gz vyos-cloud-init-332ef83d77853714b88358de301bda30e82aaf62.zip |
Stop the bad habit of using 'or'.
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/distros/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py index 6df843ad..55e4b8db 100644 --- a/cloudinit/distros/__init__.py +++ b/cloudinit/distros/__init__.py @@ -112,7 +112,7 @@ class Distro(object): return arch def _get_arch_package_mirror_info(self, arch=None): - mirror_info = self.get_option("package_mirrors") or [] + mirror_info = self.get_option("package_mirrors", []) if arch == None: arch = self.get_primary_arch() return _get_arch_package_mirror_info(mirror_info, arch) |