diff options
Diffstat (limited to 'cloud-init.py')
-rwxr-xr-x | cloud-init.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cloud-init.py b/cloud-init.py index bc673265..8279a0b0 100755 --- a/cloud-init.py +++ b/cloud-init.py @@ -56,12 +56,12 @@ def main(): now = time.strftime("%a, %d %b %Y %H:%M:%S %z",time.gmtime()) try: - uptimef=open("/proc/uptime") - uptime=uptimef.read().split(" ")[0] - uptimef.close() + uptimef=open("/proc/uptime") + uptime=uptimef.read().split(" ")[0] + uptimef.close() except IOError as e: - warn("unable to open /proc/uptime\n") - uptime = "na" + warn("unable to open /proc/uptime\n") + uptime = "na" try: cfg = cloudinit.get_base_cfg(cfg_path) |