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:
kwydler 2017-07-06 20:41:10 -04:00 committed by Pierre Villard
parent e84f9a2416
commit e89512e744
1 changed files with 2 additions and 2 deletions

View File

@ -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);
} }