From 3d13a9dd469f354d0ddc1e36be37d743b5a57c73 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Wed, 17 Jun 2020 12:59:23 -0400 Subject: 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. --- cloudinit/ssh_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cloudinit/ssh_util.py') 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 -- cgit v1.2.3