summaryrefslogtreecommitdiff
path: root/cloudinit/CloudConfig/cc_resizefs.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-01-17 12:41:09 -0500
committerScott Moser <smoser@ubuntu.com>2012-01-17 12:41:09 -0500
commitec070cdf8746651d6dea011bd3ea9a445223028c (patch)
treeacc620e1f0423910a4d0ea0d79ee231290e4a393 /cloudinit/CloudConfig/cc_resizefs.py
parent1a1da7c11e8bbb7e9f4b06a06ee5d6b18fdc1efc (diff)
downloadvyos-cloud-init-ec070cdf8746651d6dea011bd3ea9a445223028c.tar.gz
vyos-cloud-init-ec070cdf8746651d6dea011bd3ea9a445223028c.zip
[PATCH 4/4] Fix pylint conventions C0301 (line too long)
From: Juerg Haefliger <juerg.haefliger@hp.com>
Diffstat (limited to 'cloudinit/CloudConfig/cc_resizefs.py')
-rw-r--r--cloudinit/CloudConfig/cc_resizefs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/CloudConfig/cc_resizefs.py b/cloudinit/CloudConfig/cc_resizefs.py
index 1fd9f094..d960afd5 100644
--- a/cloudinit/CloudConfig/cc_resizefs.py
+++ b/cloudinit/CloudConfig/cc_resizefs.py
@@ -63,9 +63,9 @@ def handle(_name, cfg, _cloud, log, args):
raise
log.debug("resizing root filesystem (type=%s, maj=%i, min=%i)" %
- (fstype.rstrip("\n"), os.major(st_dev), os.minor(st_dev)))
+ (str(fstype).rstrip("\n"), os.major(st_dev), os.minor(st_dev)))
- if fstype.startswith("ext"):
+ if str(fstype).startswith("ext"):
resize_cmd = [ 'resize2fs', devpth ]
elif fstype == "xfs":
resize_cmd = [ 'xfs_growfs', devpth ]