diff options
| author | Julien Danjou <julien@danjou.info> | 2013-01-31 17:22:35 +0100 |
|---|---|---|
| committer | Julien Danjou <julien@danjou.info> | 2013-01-31 17:22:35 +0100 |
| commit | 1461135c63403a274771cf64989067ba921f1794 (patch) | |
| tree | 5265b28c69a86a88d2acd80ae733bf2b39ef2f8b /openstack | |
| parent | ea46d462fcfd7d393b71b14206a5e6d86bf1994b (diff) | |
| download | oslo-1461135c63403a274771cf64989067ba921f1794.tar.gz oslo-1461135c63403a274771cf64989067ba921f1794.tar.xz oslo-1461135c63403a274771cf64989067ba921f1794.zip | |
timeutils: considers that now is soon
This is a follow-up to Doug suggestion at
https://review.openstack.org/#/c/20323/2/openstack/common/timeutils.py
Change-Id: Ic318202234202e56054df1b5cc7f82a404c307bc
Signed-off-by: Julien Danjou <julien@danjou.info>
Diffstat (limited to 'openstack')
| -rw-r--r-- | openstack/common/timeutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/timeutils.py b/openstack/common/timeutils.py index 5a011e8..e2c2740 100644 --- a/openstack/common/timeutils.py +++ b/openstack/common/timeutils.py @@ -179,4 +179,4 @@ def is_soon(dt, window): :return: True if expiration is within the given duration """ soon = (utcnow() + datetime.timedelta(seconds=window)) - return normalize_time(dt) < soon + return normalize_time(dt) <= soon |
