Skip to content

Commit

Permalink
Merge "Fix datetime issue with usage_data."
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Feb 2, 2012
2 parents 8b046fd + f512f54 commit 6dcdd21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Expand Up @@ -9,6 +9,7 @@ Chmouel Boudjnah <chmouel.boudjnah@rackspace.co.uk>
Chris Behrens <cbehrens+github@codestud.com>
Christopher MacGown <ignoti+github@gmail.com>
Cole Robinson <crobinso@redhat.com>
Dan Prince <dan.prince@rackspace.com>
Dan Wendlandt <dan@nicira.com>
Dean Troyer <dtroyer@gmail.com>
Ed Leafe <ed@leafe.com>
Expand Down
3 changes: 2 additions & 1 deletion novaclient/v1_1/shell.py
Expand Up @@ -1349,7 +1349,8 @@ def do_usage_list(cs, args):
if args.end:
end = datetime.datetime.strptime(args.end, dateformat)
else:
end = datetime.datetime.tomorrow()
end = (datetime.datetime.today() +
datetime.timedelta(days=1))

def simplify_usage(u):
simplerows = map(lambda x: x.lower().replace(" ", "_"), rows)
Expand Down

0 comments on commit 6dcdd21

Please sign in to comment.