summaryrefslogtreecommitdiff
path: root/cloudinit/distros
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/distros')
-rw-r--r--cloudinit/distros/__init__.py1
-rw-r--r--cloudinit/distros/rhel.py14
-rw-r--r--cloudinit/distros/ubuntu.py6
3 files changed, 10 insertions, 11 deletions
diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py
index 45dd85ec..25a60c52 100644
--- a/cloudinit/distros/__init__.py
+++ b/cloudinit/distros/__init__.py
@@ -157,4 +157,3 @@ def fetch(distro_name, mods=(__name__, )):
% (distro_name))
distro_cls = getattr(mod, 'Distro')
return distro_cls
-
diff --git a/cloudinit/distros/rhel.py b/cloudinit/distros/rhel.py
index b67ae5b8..5cbefa6e 100644
--- a/cloudinit/distros/rhel.py
+++ b/cloudinit/distros/rhel.py
@@ -35,7 +35,7 @@ class Distro(distros.Distro):
def __init__(self, name, cfg, paths):
distros.Distro.__init__(self, name, cfg, paths)
-
+
def install_packages(self, pkglist):
self.package_command('install', pkglist)
@@ -210,12 +210,12 @@ class Distro(distros.Distro):
def package_command(self, command, args=None):
cmd = ['yum']
# If enabled, then yum will be tolerant of errors on the command line
- # with regard to packages.
- # For example: if you request to install foo, bar and baz and baz is
+ # with regard to packages.
+ # For example: if you request to install foo, bar and baz and baz is
# installed; yum won't error out complaining that baz is already
- # installed.
+ # installed.
cmd.append("-t")
- # Determines whether or not yum prompts for confirmation
+ # Determines whether or not yum prompts for confirmation
# of critical actions. We don't want to prompt...
cmd.append("-y")
cmd.append(command)
@@ -223,8 +223,8 @@ class Distro(distros.Distro):
cmd.extend(args)
# Allow the output of this to flow outwards (ie not be captured)
util.subp(cmd, capture=False)
-
-
+
+
# This is a util function to translate a ubuntu /etc/network/interfaces 'blob'
# to a rhel equiv. that can then be written to /etc/sysconfig/network-scripts/
# TODO remove when we have python-netcf active...
diff --git a/cloudinit/distros/ubuntu.py b/cloudinit/distros/ubuntu.py
index 5a1b572e..fd7b7b8d 100644
--- a/cloudinit/distros/ubuntu.py
+++ b/cloudinit/distros/ubuntu.py
@@ -36,11 +36,11 @@ class Distro(distros.Distro):
def __init__(self, name, cfg, paths):
distros.Distro.__init__(self, name, cfg, paths)
- # This will be used to restrict certain
+ # This will be used to restrict certain
# calls from repeatly happening (when they
# should only happen say once per instance...)
self._runner = helpers.Runners(paths)
-
+
def install_packages(self, pkglist):
self._update_package_sources()
self.package_command('install', pkglist)
@@ -131,4 +131,4 @@ class Distro(distros.Distro):
def _update_package_sources(self):
self._runner.run("update-sources", self.package_command,
- ["update"], freq=PER_INSTANCE) \ No newline at end of file
+ ["update"], freq=PER_INSTANCE)