@@ -247,7 +247,7 @@ async function manage_bucket_operations(action, data, user_input) {
247
247
} else if ( action === ACTIONS . LIST ) {
248
248
const bucket_filters = _ . pick ( user_input , LIST_BUCKET_FILTERS ) ;
249
249
const wide = get_boolean_or_string_value ( user_input . wide ) ;
250
- const buckets = await list_config_files ( TYPES . BUCKET , config_fs . buckets_dir_path , wide , undefined , bucket_filters ) ;
250
+ const buckets = await list_config_files ( TYPES . BUCKET , wide , undefined , bucket_filters ) ;
251
251
write_stdout_response ( ManageCLIResponse . BucketList , buckets ) ;
252
252
} else {
253
253
// we should not get here (we check it before)
@@ -506,8 +506,7 @@ async function manage_account_operations(action, data, show_secrets, user_input)
506
506
} else if ( action === ACTIONS . LIST ) {
507
507
const account_filters = _ . pick ( user_input , LIST_ACCOUNT_FILTERS ) ;
508
508
const wide = get_boolean_or_string_value ( user_input . wide ) ;
509
- const accounts = await list_config_files ( TYPES . ACCOUNT , config_fs . accounts_dir_path , wide ,
510
- show_secrets , account_filters ) ;
509
+ const accounts = await list_config_files ( TYPES . ACCOUNT , wide , show_secrets , account_filters ) ;
511
510
write_stdout_response ( ManageCLIResponse . AccountList , accounts ) ;
512
511
} else {
513
512
// we should not get here (we check it before)
@@ -567,12 +566,11 @@ function filter_bucket(bucket, filters) {
567
566
}
568
567
/**
569
568
* list_config_files will list all the config files (json) in a given config directory
570
- * @param {string } config_path
571
569
* @param {boolean } [wide]
572
570
* @param {boolean } [show_secrets]
573
571
* @param {object } [filters]
574
572
*/
575
- async function list_config_files ( type , config_path , wide , show_secrets , filters ) {
573
+ async function list_config_files ( type , wide , show_secrets , filters ) {
576
574
const entries = type === TYPES . ACCOUNT ?
577
575
await config_fs . list_root_accounts ( ) :
578
576
await config_fs . list_buckets ( ) ;
@@ -582,7 +580,7 @@ async function list_config_files(type, config_path, wide, show_secrets, filters)
582
580
// decrypt only if data has access_keys and show_secrets = true (no need to decrypt if show_secrets = false but should_filter = true)
583
581
const options = {
584
582
show_secrets : show_secrets || should_filter ,
585
- should_decrypt : show_secrets ,
583
+ decrypt_secret_key : show_secrets ,
586
584
silent_if_missing : true
587
585
} ;
588
586
0 commit comments