summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-01-21 20:52:29 -0500
committerScott Moser <smoser@ubuntu.com>2011-01-21 20:52:29 -0500
commit154722cc740299c6c9d1b3bc9d1e96088f9259eb (patch)
tree25ec5d2830ffe1a74a75b5402673e03e70c9d03d
parenta68580956927cd4998091e844783924ffb3009ee (diff)
downloadvyos-cloud-init-154722cc740299c6c9d1b3bc9d1e96088f9259eb.tar.gz
vyos-cloud-init-154722cc740299c6c9d1b3bc9d1e96088f9259eb.zip
cc_locale: fix copy paste code error if args are given
-rw-r--r--cloudinit/CloudConfig/cc_locale.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/CloudConfig/cc_locale.py b/cloudinit/CloudConfig/cc_locale.py
index 12cf6f04..c164b5ba 100644
--- a/cloudinit/CloudConfig/cc_locale.py
+++ b/cloudinit/CloudConfig/cc_locale.py
@@ -28,7 +28,7 @@ def apply_locale(locale):
def handle(name,cfg,cloud,log,args):
if len(args) != 0:
- value = args[0]
+ locale = args[0]
else:
locale = util.get_cfg_option_str(cfg,"locale",cloud.get_locale())