diff options
author | Scott Moser <smoser@ubuntu.com> | 2015-06-16 11:18:33 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2015-06-16 11:18:33 -0400 |
commit | 6e06afffed8614cb143e3a13bab5aa382ccbbce9 (patch) | |
tree | c149bdb49489359e2e04b9f7c2300ed28f381c43 /cloudinit/config/cc_growpart.py | |
parent | 66c13ab5aca67ca3aa3d1536154989f98b85107a (diff) | |
download | vyos-cloud-init-6e06afffed8614cb143e3a13bab5aa382ccbbce9.tar.gz vyos-cloud-init-6e06afffed8614cb143e3a13bab5aa382ccbbce9.zip |
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
Diffstat (limited to 'cloudinit/config/cc_growpart.py')
-rw-r--r-- | cloudinit/config/cc_growpart.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |