PIP8 ify the latest updates.

This commit is contained in:
James Bromberger 2013-12-21 12:26:37 +00:00
parent d9dacc5d41
commit 7e3527d2af

View file

@ -22,6 +22,7 @@ class SetUsername(Task):
' shell: /bin/bash').format(username=username) ' shell: /bin/bash').format(username=username)
sed_i(cloud_cfg, search, replace) sed_i(cloud_cfg, search, replace)
class SetMetadataSource(Task): class SetMetadataSource(Task):
description = 'Setting metadata source' description = 'Setting metadata source'
phase = phases.system_modification phase = phases.system_modification
@ -39,6 +40,7 @@ class AutoSetMetadataSource(Task):
phase = phases.system_modification phase = phases.system_modification
predecessors = [apt.AptSources] predecessors = [apt.AptSources]
successors = [SetMetadataSource] successors = [SetMetadataSource]
def run(self, info): def run(self, info):
sources = "" sources = ""
if info.manifest.provider == "ec2": if info.manifest.provider == "ec2":
@ -49,6 +51,7 @@ class AutoSetMetadataSource(Task):
sources = "cloud-init cloud-init/datasources multiselect " + sources sources = "cloud-init cloud-init/datasources multiselect " + sources
log_check_call(['/usr/sbin/chroot', info.root, '/usr/bin/debconf-set-selections'], sources) log_check_call(['/usr/sbin/chroot', info.root, '/usr/bin/debconf-set-selections'], sources)
class DisableModules(Task): class DisableModules(Task):
description = 'Setting cloud.cfg modules' description = 'Setting cloud.cfg modules'
phase = phases.system_modification phase = phases.system_modification