Upgrade to consul-api version 1.1.11
fixes gh-211
This commit is contained in:
@@ -91,7 +91,7 @@ public class ConsulPropertySource extends EnumerablePropertySource<ConsulClient>
|
||||
String key = getValue.getKey();
|
||||
if (!StringUtils.endsWithIgnoreCase(key, "/")) {
|
||||
key = key.replace(context, "").replace('/', '.');
|
||||
String value = getDecoded(getValue.getValue());
|
||||
String value = getValue.getDecodedValue();
|
||||
properties.put(key, value);
|
||||
}
|
||||
}
|
||||
@@ -118,7 +118,7 @@ public class ConsulPropertySource extends EnumerablePropertySource<ConsulClient>
|
||||
}
|
||||
|
||||
protected void parseValue(GetValue getValue, ConsulConfigProperties.Format format) {
|
||||
String value = getDecoded(getValue.getValue());
|
||||
String value = getValue.getDecodedValue();
|
||||
Properties props = generateProperties(value, format);
|
||||
|
||||
for (Map.Entry entry : props.entrySet()) {
|
||||
@@ -154,6 +154,10 @@ public class ConsulPropertySource extends EnumerablePropertySource<ConsulClient>
|
||||
return props;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated As of 1.1.0 use {@link GetValue#getDecodedValue()}.
|
||||
*/
|
||||
@Deprecated
|
||||
public String getDecoded(String value) {
|
||||
if (value == null)
|
||||
return null;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<spring-cloud-netflix.version>1.2.0.BUILD-SNAPSHOT</spring-cloud-netflix.version>
|
||||
<spring-cloud-deployer.version>1.0.3.BUILD-SNAPSHOT</spring-cloud-deployer.version>
|
||||
<spring-cloud-stream.version>Brooklyn.BUILD-SNAPSHOT</spring-cloud-stream.version>
|
||||
<consul-api.version>1.1.10</consul-api.version>
|
||||
<consul-api.version>1.1.11</consul-api.version>
|
||||
<gson.version>2.3.1</gson.version>
|
||||
<httpclient.version>4.5</httpclient.version>
|
||||
<httpcore.version>4.4.1</httpcore.version>
|
||||
|
||||
Reference in New Issue
Block a user