mirror of
https://github.com/apache/jclouds.git
synced 2025-02-06 18:19:03 +00:00
Fixes an issue where the number of retries was always set to 1.
This commit is contained in:
parent
34866e5be1
commit
e230880453
@ -62,7 +62,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