diff options
author | Ben Howard <ben.howard@canonical.com> | 2014-01-24 14:20:54 -0700 |
---|---|---|
committer | Ben Howard <ben.howard@canonical.com> | 2014-01-24 14:20:54 -0700 |
commit | 85d8ec03ea4dd01d37b141390d1ae5c7d10e7052 (patch) | |
tree | a97ddb7f71d00e857dd718b4004f52638736c299 /cloudinit/config/cc_growpart.py | |
parent | 7079fac4646380db1e064a433d7843473bda1542 (diff) | |
parent | 4919cd124e57e82ecfcdaa9bfcbc051c719708e6 (diff) | |
download | vyos-cloud-init-85d8ec03ea4dd01d37b141390d1ae5c7d10e7052.tar.gz vyos-cloud-init-85d8ec03ea4dd01d37b141390d1ae5c7d10e7052.zip |
Rebasing on trunk
Diffstat (limited to 'cloudinit/config/cc_growpart.py')
-rw-r--r-- | cloudinit/config/cc_growpart.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/config/cc_growpart.py b/cloudinit/config/cc_growpart.py index b81951ad..f52c41f0 100644 --- a/cloudinit/config/cc_growpart.py +++ b/cloudinit/config/cc_growpart.py @@ -223,7 +223,8 @@ def resize_devices(resizer, devices): "stat of '%s' failed: %s" % (blockdev, e),)) continue - if not stat.S_ISBLK(statret.st_mode) and not stat.S_ISCHR(statret.st_mode): + if (not stat.S_ISBLK(statret.st_mode) and + not stat.S_ISCHR(statret.st_mode)): info.append((devent, RESIZE.SKIPPED, "device '%s' not a block device" % blockdev,)) continue |