Skip to content

Commit

Permalink
Re-applies yapf formatting with correct yapf version.
Browse files Browse the repository at this point in the history
  • Loading branch information
samson-ichiban committed Jan 4, 2024
1 parent 4d3cb9f commit 0a50e03
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions gestalt/vault.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@


class Vault(Provider):

def __init__(
self,
cert: Optional[Tuple[str, str]] = None,
Expand All @@ -41,14 +40,14 @@ def __init__(

# __init__ impl for retry_call
def __do_init(
self,
cert: Optional[Tuple[str, str]],
role: Optional[str],
jwt: Optional[str],
url: Optional[str],
token: Optional[str],
verify: Optional[bool],
scheme: str,
self,
cert: Optional[Tuple[str, str]],
role: Optional[str],
jwt: Optional[str],
url: Optional[str],
token: Optional[str],
verify: Optional[bool],
scheme: str,
) -> None:
"""Initialized vault client and authenticates vault
Args:
Expand Down Expand Up @@ -116,12 +115,13 @@ def stop(self) -> None:
def __del__(self) -> None:
self.stop()

def get(self,
key: str,
path: str,
filter: str,
sep: Optional[str] = "."
) -> Union[str, int, float, bool, List[Any]]:
def get(
self,
key: str,
path: str,
filter: str,
sep: Optional[str] = "."
) -> Union[str, int, float, bool, List[Any]]:
return retry_call(
f=Vault.__do_get,
fargs=[self, key, path, filter, sep],
Expand All @@ -130,12 +130,13 @@ def get(self,
tries=self.tries,
)

def __do_get(self,
key: str,
path: str,
filter: str,
sep: Optional[str] = "."
) -> Union[str, int, float, bool, List[Any]]:
def __do_get(
self,
key: str,
path: str,
filter: str,
sep: Optional[str] = "."
) -> Union[str, int, float, bool, List[Any]]:
"""Gets secret from vault
Args:
key (str): key to get secret from
Expand Down

0 comments on commit 0a50e03

Please sign in to comment.