diff options
| author | diogo464 <[email protected]> | 2026-03-17 11:32:54 +0000 |
|---|---|---|
| committer | diogo464 <[email protected]> | 2026-03-17 11:32:55 +0000 |
| commit | 9fc317450ee8e94992408f0c014dc065dcb9e3ad (patch) | |
| tree | 58b745f99cf6ab64106e174582cd32a03e2d5040 /src | |
| parent | 208143e6f2f8b18b4acb8ad0592217bc5c615eb4 (diff) | |
fix: CLUSTER_USERNAME when running from frontend
the CLUSTER_USERNAME variable was not being used when running from the
frontend.
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 3ed115e..1a82b1e 100644 --- a/src/main.rs +++ b/src/main.rs | |||
| @@ -807,6 +807,10 @@ async fn machine_run( | |||
| 807 | let mut arguments = Vec::default(); | 807 | let mut arguments = Vec::default(); |
| 808 | arguments.push("ssh"); | 808 | arguments.push("ssh"); |
| 809 | arguments.extend(ssh_common); | 809 | arguments.extend(ssh_common); |
| 810 | if ctx.cluster_username().is_ok() { | ||
| 811 | arguments.push("-l"); | ||
| 812 | arguments.push(ctx.cluster_username()?); | ||
| 813 | } | ||
| 810 | arguments.push(machine.hostname()); | 814 | arguments.push(machine.hostname()); |
| 811 | arguments | 815 | arguments |
| 812 | } | 816 | } |
