mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-07-27 00:18:13 +00:00
Fix trivial bug in CLI
This commit is contained in:
+6
-2
@@ -531,7 +531,9 @@ impl AdminRpcHandler {
|
||||
.bucket_helper()
|
||||
.get_existing_matching_key(&query.key_pattern)
|
||||
.await?;
|
||||
key.params_mut().unwrap().allow_create_bucket.update(true);
|
||||
if query.create_bucket {
|
||||
key.params_mut().unwrap().allow_create_bucket.update(true);
|
||||
}
|
||||
self.garage.key_table.insert(&key).await?;
|
||||
self.key_info_result(key).await
|
||||
}
|
||||
@@ -542,7 +544,9 @@ impl AdminRpcHandler {
|
||||
.bucket_helper()
|
||||
.get_existing_matching_key(&query.key_pattern)
|
||||
.await?;
|
||||
key.params_mut().unwrap().allow_create_bucket.update(false);
|
||||
if query.create_bucket {
|
||||
key.params_mut().unwrap().allow_create_bucket.update(false);
|
||||
}
|
||||
self.garage.key_table.insert(&key).await?;
|
||||
self.key_info_result(key).await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user