From 4b52f2dc0b1cc8b8f042661b6dbbe23685d7a8ec Mon Sep 17 00:00:00 2001 From: brent s Date: Sat, 18 Apr 2020 00:39:22 -0400 Subject: [PATCH] gorram it. so, i need to redo path detection and secret parsing etc., because turns out a SECRET at foo/bar/baz and e.g. a path at foo/bar/baz/quux means there's a "bar" and "bar/" in the keys. i need to review things. --- vaultpass/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vaultpass/__init__.py b/vaultpass/__init__.py index da17173..0eec544 100644 --- a/vaultpass/__init__.py +++ b/vaultpass/__init__.py @@ -278,7 +278,7 @@ class VaultPass(object): kname = lpath[-1] path = '/'.join(lpath[0:-1]) self.removeSecretName(kname, path, mount, destroy = destroy) - # The business end. + # We need to recurse down and delete secrets. Empty subdirs are removed automatically. if op == 'destroy': if mtype == 'kv2': versions = self.client.secrets.kv.v2.