Skip to content

Commit

Permalink
Switch CLI to use newer PncClient
Browse files Browse the repository at this point in the history
  • Loading branch information
jbartece committed Apr 3, 2020
1 parent c2314fd commit ad120ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cli/src/main/java/org/jboss/pnc/build/finder/cli/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
import org.jboss.pnc.build.finder.koji.KojiBuild;
import org.jboss.pnc.build.finder.koji.KojiClientSession;
import org.jboss.pnc.build.finder.koji.KojiJSONUtils;
import org.jboss.pnc.build.finder.pnc.client.PncClient;
import org.jboss.pnc.build.finder.pnc.client.PncClient14;
import org.jboss.pnc.build.finder.report.BuildStatisticsReport;
import org.jboss.pnc.build.finder.report.GAVReport;
Expand Down Expand Up @@ -724,7 +725,7 @@ public Void call() throws Exception {
analyzer.setChecksums(checksums);

if (config.getPncURL() != null) {
PncClient14 pncclient = new PncClient14(config);
PncClient14 pncclient = new PncClient(config);
finder = new BuildFinder(session, config, analyzer, cacheManager, pncclient);
} else {
finder = new BuildFinder(session, config, analyzer, cacheManager);
Expand Down Expand Up @@ -775,7 +776,7 @@ public Void call() throws Exception {
}

if (config.getPncURL() != null) {
PncClient14 pncclient = new PncClient14(config);
PncClient14 pncclient = new PncClient(config);
finder = new BuildFinder(session, config, analyzer, cacheManager, pncclient);
} else {
finder = new BuildFinder(session, config, analyzer, cacheManager);
Expand Down

0 comments on commit ad120ee

Please sign in to comment.