Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
Signed-off-by: Yue Shang <[email protected]>
  • Loading branch information
ysysys3074 committed Aug 21, 2023
1 parent 1e95a27 commit 850ff3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flytekit/core/context_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,11 @@ def __getattr__(self, item: str) -> _GroupSecrets:
return self._GroupSecrets(item, self)

def get(
self, group: str, key: Optional[str] = None, group_version: Optional[str] = None, encode_mode: str = "r"
self, group: str, key: Optional[str] = None, group_version: Optional[str] = None, encode_mode: Optional[str] = "r"
) -> str:
"""
Retrieves a secret using the resolution order -> Env followed by file. If not found raises a ValueError
param encode_mode, defines the mode to open files, it can either be "r" to read file, or "rb" to read binary file
"""
self.check_group_key(group)
env_var = self.get_secrets_env_var(group, key, group_version)
Expand Down

0 comments on commit 850ff3e

Please sign in to comment.