mirror of https://github.com/apache/nifi.git
NIFI-4161: Adding expression evaluation to AWS PROXY_HOST and PROXY_HOST_PORT property usage
Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com> This closes #1990.
This commit is contained in:
parent
e84f9a2416
commit
e89512e744
|
@ -191,9 +191,9 @@ public abstract class AbstractAWSProcessor<ClientType extends AmazonWebServiceCl
|
||||||
}
|
}
|
||||||
|
|
||||||
if (context.getProperty(PROXY_HOST).isSet()) {
|
if (context.getProperty(PROXY_HOST).isSet()) {
|
||||||
String proxyHost = context.getProperty(PROXY_HOST).getValue();
|
String proxyHost = context.getProperty(PROXY_HOST).evaluateAttributeExpressions().getValue();
|
||||||
config.setProxyHost(proxyHost);
|
config.setProxyHost(proxyHost);
|
||||||
Integer proxyPort = context.getProperty(PROXY_HOST_PORT).asInteger();
|
Integer proxyPort = context.getProperty(PROXY_HOST_PORT).evaluateAttributeExpressions().asInteger();
|
||||||
config.setProxyPort(proxyPort);
|
config.setProxyPort(proxyPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue