def reveal_token_tag(self, token_tag): """reveal token_tag""" secrets_path = self.kwargs.get("secrets_path", None) if secrets_path is None: raise ValueError("secrets_path not set") token, func = secret_token_from_tag(token_tag) return secret_gpg_read(secrets_path, token)
def reveal_token_tag(self, token_tag): "reveal token_tag" secrets_path = self.kwargs.get("secrets_path", None) gpg_obj = self.kwargs.get("gpg_obj", None) if secrets_path is None: raise ValueError("secrets_path not set") if gpg_obj is None: raise ValueError("secrets_path not set") token = secret_token_from_tag(token_tag) return secret_gpg_read(gpg_obj, secrets_path, token)