diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-01-26 09:03:46 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-01-26 09:03:46 -0500 |
commit | be11324740ad4624c45a6e909643ab84aecdbf16 (patch) | |
tree | a7a2a7e8a4b4a05ea5a071610b7c52bf4e6ef810 /cloudinit/CloudConfig/cc_resizefs.py | |
parent | f69109bb2be91a7210a88bfb1b4467f80dc6ba64 (diff) | |
download | vyos-cloud-init-be11324740ad4624c45a6e909643ab84aecdbf16.tar.gz vyos-cloud-init-be11324740ad4624c45a6e909643ab84aecdbf16.zip |
change 'except' syntax to python 3 style.
Everywhere that there occurred:
except Exception, e:
changed to
except Exception as e:
Diffstat (limited to 'cloudinit/CloudConfig/cc_resizefs.py')
-rw-r--r-- | cloudinit/CloudConfig/cc_resizefs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/CloudConfig/cc_resizefs.py b/cloudinit/CloudConfig/cc_resizefs.py index 11a10005..6e5f364c 100644 --- a/cloudinit/CloudConfig/cc_resizefs.py +++ b/cloudinit/CloudConfig/cc_resizefs.py @@ -34,7 +34,7 @@ def handle(name,cfg,cloud,log,args): cmd = ['blkid', '-sTYPE', '-ovalue', '/dev/root'] try: (fstype,err) = util.subp(cmd) - except Exception, e: + except Exception as e: log.warn("Failed to get filesystem type via %s" % cmd) raise @@ -48,7 +48,7 @@ def handle(name,cfg,cloud,log,args): try: (out,err) = util.subp(resize_cmd) - except Exception, e: + except Exception as e: log.warn("Failed to resize filesystem (%s,%s)" % cmd) raise |