i think i might scrap it and re-do. it's kind of Broken(TM).
This commit is contained in:
parent
4b52f2dc0b
commit
ac11bc6f33
@ -136,6 +136,7 @@ class VaultPass(object):
|
|||||||
|
|
||||||
def _pathExists(self, path, mount, is_secret = False, *args, **kwargs):
|
def _pathExists(self, path, mount, is_secret = False, *args, **kwargs):
|
||||||
kname = None
|
kname = None
|
||||||
|
path = path.rstrip('/')
|
||||||
if is_secret:
|
if is_secret:
|
||||||
lpath = path.split('/')
|
lpath = path.split('/')
|
||||||
path = '/'.join(lpath[0:-1])
|
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.
|
# We need to recurse down and delete secrets. Empty subdirs are removed automatically.
|
||||||
if op == 'destroy':
|
if op == 'destroy':
|
||||||
if mtype == 'kv2':
|
if mtype == 'kv2':
|
||||||
versions = self.client.secrets.kv.v2.
|
pass # TODO: how tf do i recurse
|
||||||
return(handler(**args))
|
return(handler(**args))
|
||||||
|
|
||||||
def editSecret(self, path, mount, editor_prog = constants.EDITOR, *args, **kwargs):
|
def editSecret(self, path, mount, editor_prog = constants.EDITOR, *args, **kwargs):
|
||||||
|
Reference in New Issue
Block a user