utils.CreateBackup: Use human-readable instead of seconds since Epoch
authorMichael Hanselmann <hansmi@google.com>
Fri, 12 Mar 2010 14:35:02 +0000 (15:35 +0100)
committerMichael Hanselmann <hansmi@google.com>
Fri, 12 Mar 2010 15:44:54 +0000 (16:44 +0100)
commit1d466a4f5d38b85d7f858cd743a3086578101512
tree641afedb281bbbc3b5c405fb33f7bb7be4f3d5ef
parent571b34f87a0559e53023cca553de387b94777f23
utils.CreateBackup: Use human-readable instead of seconds since Epoch

Seconds since the Epoch are not easily readable by a human. Using a
formatted timestamp makes it easier (e.g.
“….backup-2010-03-12_14_02_43.…”). This patch also makes OS logfiles use
this formatted timestamp.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/backend.py
lib/utils.py
test/ganeti.utils_unittest.py