Skip to content

Commit 1be2788

Browse files
chore: remove extra whitespace
1 parent 88ae4ed commit 1be2788

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

glueops/vault_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def _adjust_path(self, path: str) -> str:
6969
if path.startswith("secret/") and not path.startswith("secret/data/"):
7070
return path.replace("secret/", "secret/data/")
7171
return path
72-
72+
7373
def _vault_auth(self):
7474
if not self.vault_token:
7575
self.vault_token = self._get_vault_token_via_kube_auth()
@@ -78,14 +78,14 @@ def _vault_auth(self):
7878
}
7979
if self.pomerium_cookie:
8080
self.headers["cookie"] = f"_pomerium={self.pomerium_cookie}"
81-
81+
8282
@vault_response_handler
8383
def _query_vault(
8484
self,
8585
secret_path: str
8686
):
8787
self._vault_auth()
88-
88+
8989
secret_path = self._adjust_path(secret_path)
9090

9191
return requests.get(
@@ -102,7 +102,7 @@ def get_data_from_vault(
102102
self._vault_auth()
103103
response_data = self._query_vault(
104104
secret_path=secret_path
105-
)
105+
)
106106
if 'data' not in response_data:
107107
raise Exception("Missing data.")
108108

@@ -120,7 +120,7 @@ def write_data_to_vault(
120120
data: dict
121121
):
122122
self._vault_auth()
123-
123+
124124
secret_path = self._adjust_path(secret_path)
125125

126126
write_vault_path=f"{self.vault_url}/v1/{secret_path}"

0 commit comments

Comments
 (0)