Skip to content

Commit fd8df3b

Browse files
committed
NC | Add backwards compatibility on get_bucket_owner for error accuracy
Signed-off-by: Romy <35330373+romayalon@users.noreply.github.com>
1 parent 8961f1d commit fd8df3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/manage_nsfs/manage_nsfs_cli_utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
const dbg = require('../util/debug_module')(__filename);
55
const nb_native = require('../util/nb_native');
6+
const { CONFIG_TYPES } = require('../sdk/config_fs');
67
const native_fs_utils = require('../util/native_fs_utils');
78
const ManageCLIError = require('../manage_nsfs/manage_nsfs_cli_errors').ManageCLIError;
89
const NSFS_CLI_ERROR_EVENT_MAP = require('../manage_nsfs/manage_nsfs_cli_errors').NSFS_CLI_ERROR_EVENT_MAP;
@@ -44,7 +45,7 @@ async function get_bucket_owner_account(config_fs, bucket_owner, owner_account_i
4445
try {
4546
const account = bucket_owner ?
4647
await config_fs.get_account_by_name(bucket_owner) :
47-
await config_fs.get_identity_by_id(owner_account_id);
48+
await config_fs.get_identity_by_id(owner_account_id, CONFIG_TYPES.ACCOUNT);
4849
return account;
4950
} catch (err) {
5051
if (err.code === 'ENOENT') {

0 commit comments

Comments
 (0)