summaryrefslogtreecommitdiff
path: root/cloudinit/distros
diff options
context:
space:
mode:
authorGarrett Holmstrom <gholms@eucalyptus.com>2012-09-19 16:06:58 -0400
committerScott Moser <smoser@ubuntu.com>2012-09-19 16:06:58 -0400
commita2508f662245ab38a5200188e54e228005d56bba (patch)
treef4600c7b088a6d8f104df492c2be8fce1a7d100b /cloudinit/distros
parentb15088c1fd1e0199a86ed3af0f0415f604074609 (diff)
parent49f5833d03b41663ccd705521136718f6230eb4b (diff)
downloadvyos-cloud-init-a2508f662245ab38a5200188e54e228005d56bba.tar.gz
vyos-cloud-init-a2508f662245ab38a5200188e54e228005d56bba.zip
fix 'update_package_sources' on rhel to only update package sources
update_package_sources on RHEL called "yum update", which actually upgrades packages on the system. Thix fix makes it instead call "yum makecache" instead.
Diffstat (limited to 'cloudinit/distros')
-rw-r--r--cloudinit/distros/rhel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/distros/rhel.py b/cloudinit/distros/rhel.py
index b77f1b70..ec4dc2cc 100644
--- a/cloudinit/distros/rhel.py
+++ b/cloudinit/distros/rhel.py
@@ -228,7 +228,7 @@ class Distro(distros.Distro):
def update_package_sources(self):
self._runner.run("update-sources", self.package_command,
- ["update"], freq=PER_INSTANCE)
+ ["makecache"], freq=PER_INSTANCE)
# This class helps adjust the configobj