diff options
author | Adrian Likins <alikins@grimlock.devel.redhat.com> | 2008-01-16 15:56:34 -0500 |
---|---|---|
committer | Adrian Likins <alikins@grimlock.devel.redhat.com> | 2008-01-16 15:56:34 -0500 |
commit | 72c42fa7dc072e3b4e6808e3b1acd0ad663ae631 (patch) | |
tree | 4f4a8ac2343689c774d5ade765d1f2d0aeb7cb72 /func/certs.py | |
parent | 63a34599ffc274f7ff81151bc5ce74e0c8edff21 (diff) | |
download | third_party-func-72c42fa7dc072e3b4e6808e3b1acd0ad663ae631.tar.gz third_party-func-72c42fa7dc072e3b4e6808e3b1acd0ad663ae631.tar.xz third_party-func-72c42fa7dc072e3b4e6808e3b1acd0ad663ae631.zip |
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.
Diffstat (limited to 'func/certs.py')
-rw-r--r-- | func/certs.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |