summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-06-16 11:18:33 -0400
committerScott Moser <smoser@ubuntu.com>2015-06-16 11:18:33 -0400
commit6e06afffed8614cb143e3a13bab5aa382ccbbce9 (patch)
treec149bdb49489359e2e04b9f7c2300ed28f381c43
parent66c13ab5aca67ca3aa3d1536154989f98b85107a (diff)
downloadcloud-init-git-6e06afffed8614cb143e3a13bab5aa382ccbbce9.tar.gz
growpart: fix specification of 'devices' list.
given config: {'growpart': {'devices': ["/"]}} the 'devices' was ignored, it was incorrectly read from the top level non-namespaced location. LP: #1465436
-rw-r--r--ChangeLog1
-rw-r--r--cloudinit/config/cc_growpart.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6261147e..47b8dec2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -49,6 +49,7 @@
- Add an rh_subscription module to handle registration of Red Hat instances.
[Brent Baude]
- cc_apt_configure: fix importing keys under python3 (LP: #1463373)
+ - cc_growpart: fix specification of 'devices' list (LP: #1465436)
0.7.6:
- open 0.7.6
- Enable vendordata on CloudSigma datasource (LP: #1303986)
diff --git a/cloudinit/config/cc_growpart.py b/cloudinit/config/cc_growpart.py
index f52c41f0..859d69f1 100644
--- a/cloudinit/config/cc_growpart.py
+++ b/cloudinit/config/cc_growpart.py
@@ -276,7 +276,7 @@ def handle(_name, cfg, _cloud, log, _args):
log.debug("use ignore_growroot_disabled to ignore")
return
- devices = util.get_cfg_option_list(cfg, "devices", ["/"])
+ devices = util.get_cfg_option_list(mycfg, "devices", ["/"])
if not len(devices):
log.debug("growpart: empty device list")
return