Skip to content

Commit 367b297

Browse files
committed
Use '--client' option when detectin tools version
This option suppress detection of current cluster URL, which takes time in case cluster is not available Signed-off-by: Denis Golovin <dgolovin@redhat.com>
1 parent 52f3c96 commit 367b297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class ToolsConfig {
5757
public static async getVersion(location: string): Promise<string> {
5858
let detectedVersion: string;
5959
if (fs.existsSync(location)) {
60-
const result = await CliChannel.getInstance().execute(`"${location}" version`);
60+
const result = await CliChannel.getInstance().execute(`"${location}" version --client`);
6161
if (result.stdout) {
6262
const versionRegExp = /.*([0-9]+\.[0-9]+\.[0-9]+).*/;
6363
const toolVersion: string[] = result.stdout.trim().split('\n').filter((value) => {

0 commit comments

Comments
 (0)