diff options
author | Scott Moser <smoser@ubuntu.com> | 2013-03-07 14:54:25 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2013-03-07 14:54:25 -0500 |
commit | dca9b6c94e10f9f42ad0f129ae6fd38ebb44f4b5 (patch) | |
tree | 0b4ac8f1e658e07bda378c75b5fb33940a14265b /cloudinit/distros/rhel.py | |
parent | 90ed3dee9672ba2756dd4a303f94e3de47e70404 (diff) | |
download | vyos-cloud-init-dca9b6c94e10f9f42ad0f129ae6fd38ebb44f4b5.tar.gz vyos-cloud-init-dca9b6c94e10f9f42ad0f129ae6fd38ebb44f4b5.zip |
pep8 and pylint fixes
Diffstat (limited to 'cloudinit/distros/rhel.py')
-rw-r--r-- | cloudinit/distros/rhel.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cloudinit/distros/rhel.py b/cloudinit/distros/rhel.py index 2f91e386..9fee5fd1 100644 --- a/cloudinit/distros/rhel.py +++ b/cloudinit/distros/rhel.py @@ -208,7 +208,10 @@ class Distro(distros.Distro): # This ensures that the correct tz will be used for the system util.copy(tz_file, self.tz_local_fn) - def package_command(self, command, args=None, pkgs=[]): + def package_command(self, command, args=None, pkgs=None): + if pkgs is None: + pkgs = [] + cmd = ['yum'] # If enabled, then yum will be tolerant of errors on the command line # with regard to packages. |