mirror of https://github.com/apache/nifi.git
NIFI-1185:
- Using banners from the NCM rather than replicating to a node.
This commit is contained in:
parent
c75b5cfcea
commit
51b8ecd01b
|
@ -979,11 +979,7 @@ public class ControllerResource extends ApplicationResource {
|
||||||
)
|
)
|
||||||
@QueryParam(CLIENT_ID) @DefaultValue(StringUtils.EMPTY) ClientIdParameter clientId) {
|
@QueryParam(CLIENT_ID) @DefaultValue(StringUtils.EMPTY) ClientIdParameter clientId) {
|
||||||
|
|
||||||
// replicate if cluster manager
|
// get the banner from the properties - will come from the NCM when clustered
|
||||||
if (properties.isClusterManager()) {
|
|
||||||
return clusterManager.applyRequest(HttpMethod.GET, getAbsolutePath(), getRequestParameters(true), getHeaders()).getResponse();
|
|
||||||
}
|
|
||||||
|
|
||||||
final String bannerText = properties.getBannerText();
|
final String bannerText = properties.getBannerText();
|
||||||
|
|
||||||
// create the DTO
|
// create the DTO
|
||||||
|
|
Loading…
Reference in New Issue