Skip to content

Commit 50ed46f

Browse files
committed
Update client.py
1 parent da54266 commit 50ed46f

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

infisical_sdk/client.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -227,26 +227,24 @@ def list_secrets(
227227
)
228228

229229
return result.data
230-
230+
231231
def get_secret_by_name(
232232
self,
233233
secret_name: str,
234234
project_id: str,
235-
secret_path: str,
236235
environment_slug: str,
237-
version: int = None,
238-
type: str = "shared",
236+
secret_path: str,
239237
expand_secret_references: bool = True,
240238
include_imports: bool = True,
241-
) -> BaseSecret:
239+
version: str = None) -> GetSecretResponse:
242240

243241
params = {
244-
"workspaceId": project_id,
245-
"environment": environment_slug,
246-
"secretPath": secret_path,
247-
"expandSecretReferences": str(expand_secret_references).lower(),
248-
"include_imports": str(include_imports).lower(),
249-
"version": version,
242+
"workspaceId": project_id,
243+
"environment": environment_slug,
244+
"secretPath": secret_path,
245+
"expandSecretReferences": str(expand_secret_references).lower(),
246+
"include_imports": str(include_imports).lower(),
247+
"version": version
250248
}
251249

252250
result = self.client.api.get(

0 commit comments

Comments
 (0)