Skip to content

Commit

Permalink
improved valuesToMask handling
Browse files Browse the repository at this point in the history
  • Loading branch information
tnaum-ms authored Nov 25, 2024
1 parent 82070b5 commit 448ff8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mongoClusters/tree/MongoClusterResourceItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ export class MongoClusterResourceItem extends MongoClusterItemBase {

const clusterConnectionString = nonNullValue(clusterInformation.connectionString);

context.valuesToMask.push(clusterConnectionString, clusterInformation.administratorLogin ?? '');
context.valuesToMask.push(clusterConnectionString);
if (clusterInformation.administratorLogin) {
context.valuesToMask.push(clusterInformation.administratorLogin);
}

const wizardContext: AuthenticateWizardContext = {
...context,
Expand Down

0 comments on commit 448ff8c

Please sign in to comment.