diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-01-24 21:28:36 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-01-24 21:28:36 -0500 |
commit | 2b94f4428f669defbebf0be720d83452c553e8d6 (patch) | |
tree | 4e79feafb2db1b1ad3d57d5c55015104428a27f2 /cloudinit/CloudConfig/cc_final_message.py | |
parent | 0ef850f81aa3f652ecf1e869ad0de622695782d8 (diff) | |
parent | 10d4048677a90ab66ab4a314f311163b6e6d9cf1 (diff) | |
download | vyos-cloud-init-2b94f4428f669defbebf0be720d83452c553e8d6.tar.gz vyos-cloud-init-2b94f4428f669defbebf0be720d83452c553e8d6.zip |
add support for redirecting output of cloud-init, cloud-config and cloud-final
minor change to timestamps to all use gmtime()
Diffstat (limited to 'cloudinit/CloudConfig/cc_final_message.py')
-rw-r--r-- | cloudinit/CloudConfig/cc_final_message.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/CloudConfig/cc_final_message.py b/cloudinit/CloudConfig/cc_final_message.py index febfd017..8f9dc786 100644 --- a/cloudinit/CloudConfig/cc_final_message.py +++ b/cloudinit/CloudConfig/cc_final_message.py @@ -18,6 +18,7 @@ from cloudinit.CloudConfig import per_instance import sys from cloudinit import util, boot_finished +import time frequency = per_instance @@ -39,8 +40,7 @@ def handle(name,cfg,cloud,log,args): try: - from datetime import datetime - ts = datetime.utcnow().strftime('%a, %d %b %Y %H:%M:%S +0000') + ts = time.strftime("%a, %d %b %Y %H:%M:%S %z",time.gmtime()) except: ts = "na" |