mirror of
https://github.com/apache/jclouds.git
synced 2025-02-23 10:58:40 +00:00
Fixes an issue where the number of retries was always set to 1.
This commit is contained in:
parent
a53438159a
commit
44aea81972
@ -64,7 +64,9 @@ public class BaseOpenStackMockTest<A extends Closeable> {
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public A api(String uri, String provider, Properties overrides) {
|
||||
overrides.setProperty(PROPERTY_MAX_RETRIES, "1");
|
||||
if (!overrides.containsKey(PROPERTY_MAX_RETRIES)) {
|
||||
overrides.setProperty(PROPERTY_MAX_RETRIES, "1");
|
||||
}
|
||||
|
||||
return ContextBuilder.newBuilder(provider)
|
||||
.credentials("jclouds:joe", "letmein")
|
||||
|
Loading…
x
Reference in New Issue
Block a user