Correct Keystone 1.1 authentication token timeout

We should renew after 30 minutes, not 30 hours.
This commit is contained in:
Andrew Gaul 2013-03-17 16:24:47 -07:00
parent 6cef2c7984
commit d72ea8a9e8
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ public class NovaApiMetadata extends BaseRestApiMetadata {
// Keystone 1.1 expires tokens after 24 hours and allows renewal 1 hour
// before expiry by default. We choose a value less than the latter
// since the former persists between jclouds invocations.
properties.setProperty(PROPERTY_SESSION_INTERVAL, 30 * 60 * 60 + "");
properties.setProperty(PROPERTY_SESSION_INTERVAL, 30 * 60 + "");
return properties;
}

View File

@ -70,7 +70,7 @@ public class SwiftApiMetadata extends BaseRestApiMetadata {
// Keystone 1.1 expires tokens after 24 hours and allows renewal 1 hour
// before expiry by default. We choose a value less than the latter
// since the former persists between jclouds invocations.
properties.setProperty(PROPERTY_SESSION_INTERVAL, 30 * 60 * 60 + "");
properties.setProperty(PROPERTY_SESSION_INTERVAL, 30 * 60 + "");
return properties;
}