[grid] Only adding Docker factories if there is a config for it.
@@ -66,8 +66,10 @@ public static Node create(Config config) {
nodeOptions.getSessionFactories(info -> createSessionFactory(tracer, clientFactory, builders, info))
.forEach((caps, factories) -> factories.forEach(factory -> builder.add(caps, factory)));
+ if (config.getAll("docker", "configs").isPresent()) {
new DockerOptions(config).getDockerSessionFactories(tracer, clientFactory)
.forEach((caps, factories) -> factories.forEach(factory -> builder.add(caps, factory)));
+ }
return builder.build();
}
