From ac11bc6f330bd58995854a5cec9ebdd1976b6a27 Mon Sep 17 00:00:00 2001 From: brent s Date: Sun, 19 Apr 2020 03:26:41 -0400 Subject: [PATCH] i think i might scrap it and re-do. it's kind of Broken(TM). --- vaultpass/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vaultpass/__init__.py b/vaultpass/__init__.py index 0eec544..d9c68df 100644 --- a/vaultpass/__init__.py +++ b/vaultpass/__init__.py @@ -136,6 +136,7 @@ class VaultPass(object): def _pathExists(self, path, mount, is_secret = False, *args, **kwargs): kname = None + path = path.rstrip('/') if is_secret: lpath = path.split('/') path = '/'.join(lpath[0:-1]) @@ -281,7 +282,7 @@ class VaultPass(object): # 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. + pass # TODO: how tf do i recurse return(handler(**args)) def editSecret(self, path, mount, editor_prog = constants.EDITOR, *args, **kwargs):