Skip to content

Commit

Permalink
Fix Get Agent Secret Using Key (flyteorg#2644)
Browse files Browse the repository at this point in the history
Signed-off-by: Future-Outlier <[email protected]>
Signed-off-by: mao3267 <[email protected]>
  • Loading branch information
Future-Outlier authored and mao3267 committed Aug 2, 2024
1 parent 8ff53b9 commit 0b48963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flytekit/extend/backend/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def is_terminal_phase(phase: TaskExecution.Phase) -> bool:


def get_agent_secret(secret_key: str) -> str:
return flytekit.current_context().secrets.get(secret_key)
return flytekit.current_context().secrets.get(key=secret_key)


def render_task_template(tt: TaskTemplate, file_prefix: str) -> TaskTemplate:
Expand Down

0 comments on commit 0b48963

Please sign in to comment.