diff options
author | Yehuda Sadeh <yehuda@inktank.com> | 2013-09-20 14:04:47 -0700 |
---|---|---|
committer | Yehuda Sadeh <yehuda@inktank.com> | 2013-10-03 14:46:30 -0700 |
commit | 5cd66d3b4bca92b402c95ab256fbc3f0329c446f (patch) | |
tree | f01936f4c671f7e7298541dc861097087007ce46 | |
parent | e0203c61a3f45fdd6d3d3ece26fef6152bdc036d (diff) | |
download | ceph-5cd66d3b4bca92b402c95ab256fbc3f0329c446f.tar.gz |
rgw: fix keystone token expiration test
Fixes: #6360
The test was inverted, need expiration to be greater than
current time in order for token to be valid.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
-rw-r--r-- | src/rgw/rgw_swift.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/rgw_swift.h b/src/rgw/rgw_swift.h index febc2675c27..cb00c40638a 100644 --- a/src/rgw/rgw_swift.h +++ b/src/rgw/rgw_swift.h @@ -32,7 +32,7 @@ public: bool expired() { uint64_t now = ceph_clock_now(NULL).sec(); - return (now < (uint64_t)expiration); + return (now >= (uint64_t)expiration); } }; |