diff options
author | Daniel Watkins <oddbloke@ubuntu.com> | 2020-06-17 12:59:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-17 10:59:23 -0600 |
commit | 3d13a9dd469f354d0ddc1e36be37d743b5a57c73 (patch) | |
tree | eb6fbcf7f66c5c67e7703858f93369e8934b9c34 /cloudinit/ssh_util.py | |
parent | e01e3ed5444c8093de47229e20abec440530d549 (diff) | |
download | vyos-cloud-init-3d13a9dd469f354d0ddc1e36be37d743b5a57c73.tar.gz vyos-cloud-init-3d13a9dd469f354d0ddc1e36be37d743b5a57c73.zip |
util: rename write_file's copy_mode parameter to preserve_mode (#439)
When updating the docstring to include it, I realised that the current
name is somewhat misleading; this makes it a little easier to
understand, I think.
Diffstat (limited to 'cloudinit/ssh_util.py')
-rw-r--r-- | cloudinit/ssh_util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/ssh_util.py b/cloudinit/ssh_util.py index 918c4aec..72e4e65e 100644 --- a/cloudinit/ssh_util.py +++ b/cloudinit/ssh_util.py @@ -346,7 +346,7 @@ def update_ssh_config(updates, fname=DEF_SSHD_CFG): util.write_file( fname, "\n".join( [str(line) for line in lines] - ) + "\n", copy_mode=True) + ) + "\n", preserve_mode=True) return len(changed) != 0 |