aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Daugherty <rd472p@att.com>2018-05-16 21:54:58 +0000
committerGerrit Code Review <gerrit@onap.org>2018-05-16 21:54:58 +0000
commit4339e4f6ee11b8c244cb90c184fe7be706b6dce3 (patch)
treedebdfc3cd6ae7e2f5d43b78aec5aa3c765fe3699
parent587abe382a1b0230af7c4e9555792adeb8975482 (diff)
parent4808b59880b05542c5fe68a6484dec02d3d57ef2 (diff)
Merge "Add guard time to keystone expiry"
-rw-r--r--adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/openstack/utils/MsoKeystoneUtils.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/openstack/utils/MsoKeystoneUtils.java b/adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/openstack/utils/MsoKeystoneUtils.java
index 6bec917d9d..1f3c43c79e 100644
--- a/adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/openstack/utils/MsoKeystoneUtils.java
+++ b/adapters/mso-adapter-utils/src/main/java/org/openecomp/mso/openstack/utils/MsoKeystoneUtils.java
@@ -571,7 +571,8 @@ public class MsoKeystoneUtils extends MsoTenantUtils {
}
public boolean isExpired () {
- return expires == null || System.currentTimeMillis() > expires.getTimeInMillis();
+ // adding arbitrary guard timer of 5 minutes
+ return expires == null || System.currentTimeMillis() > (expires.getTimeInMillis() - 300000);
}
}