mirror of https://github.com/apache/nifi.git
NIFI-2634: Ensure that we check whether or not the Site-to-Site protocol is set when importing template, instead of assuming that it will be
This closes #921 Signed-off-by: jpercivall <joepercivall@yahoo.com>
This commit is contained in:
parent
3f60eac544
commit
8cc670c8a6
|
@ -1739,7 +1739,12 @@ public class FlowController implements EventAccess, ControllerServiceProvider, R
|
|||
remoteGroup.setPosition(toPosition(remoteGroupDTO.getPosition()));
|
||||
remoteGroup.setCommunicationsTimeout(remoteGroupDTO.getCommunicationsTimeout());
|
||||
remoteGroup.setYieldDuration(remoteGroupDTO.getYieldDuration());
|
||||
remoteGroup.setTransportProtocol(SiteToSiteTransportProtocol.valueOf(remoteGroupDTO.getTransportProtocol()));
|
||||
if (remoteGroupDTO.getTransportProtocol() == null) {
|
||||
remoteGroup.setTransportProtocol(SiteToSiteTransportProtocol.RAW);
|
||||
} else {
|
||||
remoteGroup.setTransportProtocol(SiteToSiteTransportProtocol.valueOf(remoteGroupDTO.getTransportProtocol()));
|
||||
}
|
||||
|
||||
remoteGroup.setProxyHost(remoteGroupDTO.getProxyHost());
|
||||
remoteGroup.setProxyPort(remoteGroupDTO.getProxyPort());
|
||||
remoteGroup.setProxyUser(remoteGroupDTO.getProxyUser());
|
||||
|
|
Loading…
Reference in New Issue