diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-22 23:26:50 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-22 23:26:50 -0700 |
commit | f8413af9168adc0ad7c730b9adea9eba67949ba5 (patch) | |
tree | 03b9896cb71a24839e12eb6db4dbd5a640f21b4a /cloudinit/config/cc_resizefs.py | |
parent | 9d1f042f862c114f1613dcd5d2d8c401a1c54eaa (diff) | |
download | vyos-cloud-init-f8413af9168adc0ad7c730b9adea9eba67949ba5.tar.gz vyos-cloud-init-f8413af9168adc0ad7c730b9adea9eba67949ba5.zip |
1. Move the getkeybyid function back here but add some slight adjustments
a. Instead of executing a bash string, write out a temporary file
and then just execute '/bin/sh' on that file with the right arguments instead.
2. Rename util.SilentTemporaryFile to util.ExtendedTemporaryFile and update the usages
of the previous name accordingly, this better reflects what this temp file is.
3. More teenie pep8 line length fixings
Diffstat (limited to 'cloudinit/config/cc_resizefs.py')
-rw-r--r-- | cloudinit/config/cc_resizefs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/config/cc_resizefs.py b/cloudinit/config/cc_resizefs.py index 7e1428e9..69cd8872 100644 --- a/cloudinit/config/cc_resizefs.py +++ b/cloudinit/config/cc_resizefs.py @@ -79,8 +79,8 @@ def handle(name, cfg, cloud, log, args): # TODO: allow what is to be resized to be configurable?? resize_what = cloud.paths.join(False, "/") - with util.SilentTemporaryFile(prefix="cloudinit.resizefs.", - dir=resize_root_d, delete=True) as tfh: + with util.ExtendedTemporaryFile(prefix="cloudinit.resizefs.", + dir=resize_root_d, delete=True) as tfh: devpth = tfh.name # Delete the file so that mknod will work |