Spring-cloud-config: ConfigServerHealthIndicator just verify the label "master"

Created on 14 Feb 2017  路  1Comment  路  Source: spring-cloud/spring-cloud-config

In the doHealthCheck from the class ConfigServerHealthIndicator, it's not possible to use a different label than "master".
The last parameter here should be repository.getLabel(), not null.
Environment environment = this.environmentRepository.findOne(application, profiles, **null**);
Otherwise it will always be the default "master".

Here it's my configuration:

spring:
  cloud:
    config:
      server:
        health:
          repositories:
            configuration:
              name: configuration.server
              label: poc

And I always receive NoSuchLabelException: No such label: master.
Thanks

bug

Most helpful comment

Fixed in 1.1.x and cherry-picked to 1.2.x and master

>All comments

Fixed in 1.1.x and cherry-picked to 1.2.x and master

Was this page helpful?
0 / 5 - 0 ratings