diff options
author | Quentin <quentin@deuxfleurs.fr> | 2020-12-14 21:50:40 +0100 |
---|---|---|
committer | Quentin <quentin@deuxfleurs.fr> | 2020-12-14 21:50:40 +0100 |
commit | a3566e49da406db9499a58a754af725a54d332af (patch) | |
tree | bcb0cca717b7c7c8aa390ec28cbc4392ce63716b /src/garage/admin_rpc.rs | |
parent | d0eb6a457f6f83c8f49d262adf6150964a1249b2 (diff) | |
download | garage-a3566e49da406db9499a58a754af725a54d332af.tar.gz garage-a3566e49da406db9499a58a754af725a54d332af.zip |
Start to implement Website CLI
Diffstat (limited to 'src/garage/admin_rpc.rs')
-rw-r--r-- | src/garage/admin_rpc.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/garage/admin_rpc.rs b/src/garage/admin_rpc.rs index 8bf1dec2..1e363677 100644 --- a/src/garage/admin_rpc.rs +++ b/src/garage/admin_rpc.rs @@ -156,12 +156,11 @@ impl AdminRpcHandler { ))) } BucketOperation::Website(query) => { - /*let bucket = self.get_existing_bucket(&query.bucket).await?; - + let bucket = self.get_existing_bucket(&query.bucket).await?; if query.allow && query.deny { return Err(Error::Message(format!("Website can not be both allowed and denied on a bucket"))); } - + /* if query.allow || query.deny { let exposed = query.allow; if let BucketState::Present(state) = bucket.state.get_mut() { |