summaryrefslogtreecommitdiff
path: root/cloud-init.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-01-18 21:24:29 +0000
committerScott Moser <smoser@ubuntu.com>2011-01-18 21:24:29 +0000
commite3f3759904e8021e6483743c72a36ee41da5c991 (patch)
treebbf23534078e93e96843d791769636b4ff785f2c /cloud-init.py
parent6b0a1629c1c0c2a95e9e5946d8120d521c33322a (diff)
downloadvyos-cloud-init-e3f3759904e8021e6483743c72a36ee41da5c991.tar.gz
vyos-cloud-init-e3f3759904e8021e6483743c72a36ee41da5c991.zip
move setting of default locale out of cloud-init, into cloud-config
Now, instead of setting a default value in cloud-init based only on the DataSource, this supports using 'locale' in the cloud-config.
Diffstat (limited to 'cloud-init.py')
-rwxr-xr-xcloud-init.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/cloud-init.py b/cloud-init.py
index 11bf89af..28828648 100755
--- a/cloud-init.py
+++ b/cloud-init.py
@@ -115,16 +115,6 @@ def main():
sys.exit(0)
-def set_defaults(cloud):
- apply_locale(cloud.get_locale())
-
-def apply_locale(locale):
- subprocess.Popen(['locale-gen', locale]).communicate()
- subprocess.Popen(['update-locale', locale]).communicate()
-
- util.render_to_file('default-locale', '/etc/default/locale', \
- { 'locale' : locale })
-
# read hostname from a 'hostname' file
# allow for comments and stripping line endings.
# if file doesn't exist, or no contents, return default