diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-11 17:20:57 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-11 17:20:57 -0700 |
commit | 31f92c74b194430f6db3e69ac6960daa1646a7b8 (patch) | |
tree | 16dac3804aba251300a44043780cabf1a78ea613 | |
parent | cfecfaf2a57ef258a7ad12bda7ee1e2808c736d4 (diff) | |
download | vyos-cloud-init-31f92c74b194430f6db3e69ac6960daa1646a7b8.tar.gz vyos-cloud-init-31f92c74b194430f6db3e69ac6960daa1646a7b8.zip |
Pylint cleanups.
-rw-r--r-- | cloudinit/user_data/shell_script.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cloudinit/user_data/shell_script.py b/cloudinit/user_data/shell_script.py index d666b9c4..564e4623 100644 --- a/cloudinit/user_data/shell_script.py +++ b/cloudinit/user_data/shell_script.py @@ -20,14 +20,13 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. - import os from cloudinit import log as logging from cloudinit import user_data as ud from cloudinit import util -from cloudinit.settings import (PER_INSTANCE) +from cloudinit.settings import (PER_ALWAYS) LOG = logging.getLogger(__name__) @@ -45,9 +44,10 @@ class ShellScriptPartHandler(ud.PartHandler): def _handle_part(self, _data, ctype, filename, payload, _frequency): if ctype in ud.CONTENT_SIGNALS: - # maybe delete existing things here + # TODO: maybe delete existing things here return filename = util.clean_filename(filename) payload = util.dos2unix(payload) - util.write_file(os.path.join(self.script_dir, filename), payload, 0700) + path = os.path.join(self.script_dir, filename) + util.write_file(path, payload, 0700) |