From bfed87df803f0bf65aac3d40eb2e04c9bfdab1a8 Mon Sep 17 00:00:00 2001 From: Dietmar Schinnerl Date: Sat, 11 Aug 2012 15:49:00 +0200 Subject: [PATCH] Removed leading blanks --- lib/ansible/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/utils.py b/lib/ansible/utils.py index 9582ab9f823..e390070187c 100644 --- a/lib/ansible/utils.py +++ b/lib/ansible/utils.py @@ -307,10 +307,10 @@ def _gitinfo(): branch = f.readline().split('/')[-1].rstrip("\n") branch_path = os.path.join(repo_path, "refs", "heads", branch) with open(branch_path) as f: - commit = f.readline()[:10] + commit = f.readline()[:10] date = time.localtime(os.stat(branch_path).st_mtime) offset = time.timezone if (time.daylight == 0) else time.altzone - result = "({0} {1}) last updated {2} (GMT {3:+04d})".format(branch, commit, + result = "({0} {1}) last updated {2} (GMT {3:+04d})".format(branch, commit, time.strftime("%Y/%m/%d %H:%M:%S", date), offset / -36) return result