mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 23:47:28 +00:00
Co-authored-by: GatewayJ <8352692332qq.com>
This commit is contained in:
@@ -597,7 +597,7 @@ impl Store for ObjectStore {
|
||||
async fn delete_group_info(&self, name: &str) -> Result<()> {
|
||||
self.delete_iam_config(get_group_info_path(name)).await.map_err(|err| {
|
||||
if is_err_config_not_found(&err) {
|
||||
Error::NoSuchPolicy
|
||||
Error::NoSuchGroup(name.to_string())
|
||||
} else {
|
||||
err
|
||||
}
|
||||
@@ -607,7 +607,7 @@ impl Store for ObjectStore {
|
||||
async fn load_group(&self, name: &str, m: &mut HashMap<String, GroupInfo>) -> Result<()> {
|
||||
let u: GroupInfo = self.load_iam_config(get_group_info_path(name)).await.map_err(|err| {
|
||||
if is_err_config_not_found(&err) {
|
||||
Error::NoSuchPolicy
|
||||
Error::NoSuchGroup(name.to_string())
|
||||
} else {
|
||||
err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user