Skip to content

Commit

Permalink
fix duplicate prefix in key name
Browse files Browse the repository at this point in the history
  • Loading branch information
Esgrove committed Oct 8, 2024
1 parent dd65c38 commit 9d358bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/src/vault.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ impl Vault {

/// Delete data in S3 for given key
pub async fn delete(&self, name: &str) -> Result<(), VaultError> {
let key = &self.full_key_name(name);
if !self.exists(key).await? {
if !self.exists(name).await? {
return Err(VaultError::S3DeleteObjectKeyMissingError);
}

let key = &self.full_key_name(name);
let identifiers = S3DataKeys::new(key).to_object_identifiers()?;
self.s3
.delete_objects()
Expand Down

0 comments on commit 9d358bf

Please sign in to comment.