summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-09-20 14:04:47 -0700
committerYehuda Sadeh <yehuda@inktank.com>2013-09-20 14:04:47 -0700
commit00dc7752c4eb7c23d9e4ef228f4e0ff6cf14b86b (patch)
treea543cef852ea7f7b129db7a64f692ff551259be6
parenta992664435db9dde3745eb7f354cce3fc5400a47 (diff)
downloadceph-wip-6360.tar.gz
rgw: fix keystone token expiration testwip-6360
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>
-rw-r--r--src/rgw/rgw_swift.h2
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);
}
};