From 00dc7752c4eb7c23d9e4ef228f4e0ff6cf14b86b Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Fri, 20 Sep 2013 14:04:47 -0700 Subject: 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 --- src/rgw/rgw_swift.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }; -- cgit v1.2.1