summaryrefslogtreecommitdiff
path: root/cloudinit/CloudConfig
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/CloudConfig')
-rw-r--r--cloudinit/CloudConfig/cc_resizefs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/CloudConfig/cc_resizefs.py b/cloudinit/CloudConfig/cc_resizefs.py
index 33a0d313..6615636f 100644
--- a/cloudinit/CloudConfig/cc_resizefs.py
+++ b/cloudinit/CloudConfig/cc_resizefs.py
@@ -28,7 +28,7 @@ frequency = per_always
def handle(name,cfg,cloud,log,args):
if len(args) != 0:
resize_root = False
- if str(value).lower() in [ 'true', '1', 'on', 'yes']:
+ if str(args[0]).lower() in [ 'true', '1', 'on', 'yes']:
resize_root = True
else:
resize_root = util.get_cfg_option_bool(cfg,"resize_rootfs",True)