Skip to content

Commit

Permalink
Fix ssl config issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles-Gagnon committed Nov 1, 2019
1 parent 650ab3b commit cacd481
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion extensions/big-data-cluster/src/bigDataCluster/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@ export const ignoreSslConfigName = 'ignoreSslVerification';
export function getIgnoreSslVerificationConfigSetting(): boolean {
try {
const config = vscode.workspace.getConfiguration(bdcConfigSectionName);
return config.get<boolean>(ignoreSslConfigName) || true;
const value = config.get<boolean>(ignoreSslConfigName);
return value !== undefined ? value : true;
} catch (error) {
console.error(`Unexpected error retrieving ${bdcConfigSectionName}.${ignoreSslConfigName} setting : ${error}`);
}
Expand Down
3 changes: 2 additions & 1 deletion extensions/mssql/src/util/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ const ignoreSslConfigName = 'ignoreSslVerification';
export function getIgnoreSslVerificationConfigSetting(): boolean {
try {
const config = vscode.workspace.getConfiguration(bdcConfigSectionName);
return config.get<boolean>(ignoreSslConfigName) || true;
const value = config.get<boolean>(ignoreSslConfigName);
return value !== undefined ? value : true;
} catch (error) {
console.error(`Unexpected error retrieving ${bdcConfigSectionName}.${ignoreSslConfigName} setting : ${error}`);
}
Expand Down
3 changes: 2 additions & 1 deletion extensions/notebook/src/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ const ignoreSslConfigName = 'ignoreSslVerification';
export function getIgnoreSslVerificationConfigSetting(): boolean {
try {
const config = vscode.workspace.getConfiguration(bdcConfigSectionName);
return config.get<boolean>(ignoreSslConfigName) || true;
const value = config.get<boolean>(ignoreSslConfigName);
return value !== undefined ? value : true;
} catch (error) {
console.error(`Unexpected error retrieving ${bdcConfigSectionName}.${ignoreSslConfigName} setting : ${error}`);
}
Expand Down

0 comments on commit cacd481

Please sign in to comment.