Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/openshift/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ export class Cluster extends OpenShiftItem {
try {
const result = await Progress.execFunctionWithProgress(
`Login to the cluster: ${clusterURL}`,
() => Cluster.cli.executeTool(Command.odoLoginWithUsernamePassword(clusterURL, username, passwd)));
() => Cluster.cli.executeTool(Command.odoLoginWithUsernamePassword(clusterURL, username, passwd), undefined, true));
Comment thread
datho7561 marked this conversation as resolved.
await Cluster.save(username, passwd, password, result);
return await Cluster.loginMessage(clusterURL, result);
} catch (error) {
Expand Down
5 changes: 4 additions & 1 deletion src/util/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ export class Filters {

static readonly passwordRegex = /-p\s+'([^']+)'/;

static readonly passwordAssignRegex = /-p='([^']+)'/;

static filterPassword(value: string): string {
return value ? value.replace(Filters.passwordRegex, '-p **********') : value;
if (!value) return value;
return value.match(Filters.passwordRegex) != null ? value.replace(Filters.passwordRegex, '-p **********') : value.replace(Filters.passwordAssignRegex, '-p=\'**********\'');
}
}