From e2e92ea0ee33afb08b9408b98d10c0266f1d0f9c Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Wed, 13 Jan 2010 16:15:41 +0000 Subject: [PATCH] Generate hmac file with a newline at the end This makes it slightly easier to cut&paste its content. Signed-off-by: Guido Trotter <ultrotter@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- lib/bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bootstrap.py b/lib/bootstrap.py index 5b277e9d8..a162897e4 100644 --- a/lib/bootstrap.py +++ b/lib/bootstrap.py @@ -107,7 +107,7 @@ def GenerateHmacKey(file_name): @param file_name: Path to output file """ - utils.WriteFile(file_name, data=utils.GenerateSecret(), mode=0400) + utils.WriteFile(file_name, data="%s\n" % utils.GenerateSecret(), mode=0400) def _InitGanetiServerSetup(master_name): -- GitLab