@@ -114,7 +114,7 @@ export default class ClusterViewLoader {
114114 const memoryFromSetting = vscode . workspace . getConfiguration ( 'openshiftConnector' ) . get ( 'crcMemoryAllocated' ) ;
115115 const nameserver = vscode . workspace . getConfiguration ( 'openshiftConnector' ) . get < string > ( 'crcNameserver' ) ;
116116 const nameserverOption = nameserver ? [ '-n' , nameserver ] : [ ] ;
117- const crcOptions = [ 'start' , '-p' , `${ pullSecretFromSetting } ` , '-c' , `${ cpuFromSetting } ` , '-m' , `${ memoryFromSetting } ` , ...nameserverOption , '-ojson ' ] ;
117+ const crcOptions = [ 'start' , '-p' , `${ pullSecretFromSetting } ` , '-c' , `${ cpuFromSetting } ` , '-m' , `${ memoryFromSetting } ` , ...nameserverOption , '-o json ' ] ;
118118
119119 startProcess = spawn ( `${ binaryFromSetting } ` , crcOptions ) ;
120120 channel . append ( `\n\n"${ binaryFromSetting } " ${ crcOptions . join ( ' ' ) } \n` ) ;
@@ -211,11 +211,11 @@ export default class ClusterViewLoader {
211211
212212 public static async checkCrcStatus ( filePath : string , postCommand : string , p : vscode . WebviewPanel | undefined = undefined ) {
213213 const crcCredArray = [ ] ;
214- const crcVerInfo = await CliChannel . getInstance ( ) . execute ( `"${ filePath } " version -ojson ` ) ;
215- channel . append ( `\n\n"${ filePath } " version -ojson \n` ) ;
214+ const crcVerInfo = await CliChannel . getInstance ( ) . execute ( `"${ filePath } " version -o json ` ) ;
215+ channel . append ( `\n\n"${ filePath } " version -o json \n` ) ;
216216 channel . append ( crcVerInfo . stdout ) ;
217- const result = await CliChannel . getInstance ( ) . execute ( `"${ filePath } " status -ojson ` ) ;
218- channel . append ( `\n\n"${ filePath } " status -ojson \n` ) ;
217+ const result = await CliChannel . getInstance ( ) . execute ( `"${ filePath } " status -o json ` ) ;
218+ channel . append ( `\n\n"${ filePath } " status -o json \n` ) ;
219219 channel . append ( result . stdout ) ;
220220 if ( result . error || crcVerInfo . error ) {
221221 p . webview . postMessage ( { action : postCommand , errorStatus : true } ) ;
@@ -228,7 +228,7 @@ export default class ClusterViewLoader {
228228 creds : crcCredArray
229229 } ) ;
230230 }
231- const crcCreds = await CliChannel . getInstance ( ) . execute ( `${ filePath } console --credentials -ojson ` ) ;
231+ const crcCreds = await CliChannel . getInstance ( ) . execute ( `" ${ filePath } " console --credentials -o json ` ) ;
232232 if ( ! crcCreds . error ) {
233233 try {
234234 crcCredArray . push ( JSON . parse ( crcCreds . stdout ) . clusterConfig ) ;
0 commit comments