From 72c42fa7dc072e3b4e6808e3b1acd0ad663ae631 Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Wed, 16 Jan 2008 15:56:34 -0500 Subject: Append newline to serial.txt. The second just adds newline to the end of the serial.txt -- it makes the output of cat /etc/pki/func/ca/serial.txt a bit more readable. --- func/certs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'func/certs.py') diff --git a/func/certs.py b/func/certs.py index bb44b0d..22af866 100644 --- a/func/certs.py +++ b/func/certs.py @@ -118,7 +118,7 @@ def _get_serial_number(cadir): def _set_serial_number(cadir, last): serial = '%s/serial.txt' % cadir f = open(serial, 'w') - f.write(str(last)) + f.write(str(last) + '\n') f.close() -- cgit