Skip to content

Commit

Permalink
fix backport
Browse files Browse the repository at this point in the history
Signed-off-by: jackyalbo <[email protected]>
  • Loading branch information
jackyalbo committed Aug 19, 2024
1 parent 11fb2d4 commit 37ada6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cmd/manage_nsfs.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,9 @@ async function list_config_files(type, wide, show_secrets, filters = {}) {
let config_files_list = await P.map_with_concurrency(10, entries, async entry => {
if (entry.name.endsWith(JSON_SUFFIX)) {
if (wide || should_filter) {
const full_path = path.join(config_path, entry.name);
const data = await config_fs.get_config_data(full_path, options);
const data = type === TYPES.ACCOUNT ?
await config_fs.get_account_by_name(entry.name, options) :
await config_fs.get_bucket_by_name(entry.name, options);
if (!data) return undefined;
if (should_filter && !filter_list_item(type, data, filters)) return undefined;
// remove secrets on !show_secrets && should filter
Expand Down

0 comments on commit 37ada6f

Please sign in to comment.