Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Use environment dictionary in config-ssh ux state call #199

Merged
merged 2 commits into from
Dec 4, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! cli: Use map for config-ssh ux State write
  • Loading branch information
greyscaled committed Dec 4, 2020
commit 647362331ddf40b685ec07efa90717d7a1c3bec6
6 changes: 2 additions & 4 deletions internal/cmd/configssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,8 @@ func readStr(filename string) (string, error) {
}

func writeSSHUXState(ctx context.Context, client *coder.Client, userID string, envs []coder.Environment) {
// Create a map of env.ID -> true to indicate to the web client that as of
// all their current environments have SSH configured. This command needs
// to be re-run each time new environments are created in order for them
// to have access.
// Create a map of env.ID -> true to indicate to the web client that all
// current environments have SSH configured
cliSSHConfigured := make(map[string]bool)
for _, env := range envs {
cliSSHConfigured[env.ID] = true
Expand Down