Skip to content

Commit

Permalink
fix(cli): properly indicate if ssh is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
olevski committed Sep 12, 2023
1 parent 1a298a6 commit f821b1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion renku/command/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def search_session_providers_command():

def session_list_command():
"""List all the running interactive sessions."""
return Command().command(session_list)
return Command().command(session_list).with_database(write=False)


def session_start_command():
Expand Down
3 changes: 2 additions & 1 deletion renku/core/session/renkulab.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ def session_list(self, project_name: str, ssh_garbage_collection: bool = True) -
commit=session.get("annotations", {}).get("renku.io/commit-sha"),
branch=session.get("annotations", {}).get("renku.io/branch"),
provider="renkulab",
ssh_enabled=system_config.session_config_path(name, session["name"]).exists(),
ssh_enabled=get_value("renku", "ssh_supported") == "true"
or project_context.project.template_metadata.ssh_supported,
)
for session in sessions_res.json().get("servers", {}).values()
]
Expand Down

0 comments on commit f821b1f

Please sign in to comment.