Fix typo: 'ingressMeta' -> 'routeMeta'

6.19.x
Sergii Leshchenko 2018-12-26 12:35:35 +02:00
parent 4758e5a453
commit e8bf807964
1 changed files with 3 additions and 3 deletions

View File

@ -35,10 +35,10 @@ public class OpenShiftUniqueNamesProvisioner extends UniqueNamesProvisioner<Open
final Set<Route> routes = new HashSet<>(osEnv.getRoutes().values());
osEnv.getRoutes().clear();
for (Route route : routes) {
final ObjectMeta ingressMeta = route.getMetadata();
putLabel(route, Constants.CHE_ORIGINAL_NAME_LABEL, ingressMeta.getName());
final ObjectMeta routeMeta = route.getMetadata();
putLabel(route, Constants.CHE_ORIGINAL_NAME_LABEL, routeMeta.getName());
final String routeName = Names.generateName("route");
ingressMeta.setName(routeName);
routeMeta.setName(routeName);
osEnv.getRoutes().put(routeName, route);
}
}