Skip to content

Commit 350b703

Browse files
committed
nc - iam - role policy crud PR notes 2
Signed-off-by: Amit Prinz Setter <alphaprinz@gmail.com>
1 parent 383567d commit 350b703

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sdk/accountspace_fs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ class AccountSpaceFS {
812812
this._check_if_requesting_account_is_root_account(action, requesting_account, {});
813813
const {owner_account_id, role_data} = await this._check_if_role_exists(params, requesting_account);
814814
if (role_data.iam_user_policies && role_data.iam_user_policies.length > 0) {
815-
this._throw_error_delete_conflict(action, params.role_name, 'role policies', 'role');
815+
this._throw_error_delete_conflict(action, role_data, 'role policies', 'role');
816816
}
817817
await this.config_fs.delete_role_config_file(role_data);
818818
iam_roles_cache.invalidate({

0 commit comments

Comments
 (0)