some modifications - VaultPass GPG-encrypted creds are almost working.

This commit is contained in:
2020-03-29 19:45:25 -04:00
parent feb032b84f
commit 2545138ae1
7 changed files with 111 additions and 42 deletions

View File

@@ -16,7 +16,6 @@ class PassMan(object):
def __init__(self, cfg = '~/.config/vaultpass.xml'):
self.cfg = config.getConfig(cfg)
self.cfg.main()
self._getURI()
self.getClient()
@@ -29,6 +28,8 @@ class PassMan(object):
def getClient(self):
# This may need to be re-tooled in the future.
auth_xml = self.cfg.xml.find('auth')
if auth_xml is None:
raise RuntimeError('Could not find authentication')
authmethod_xml = auth_xml.getchildren()[0]
for a in dir(auth):
if a.startswith('_'):