Watch
0
0
Fork
You've already forked hyperhive
0

swarmctl: drop the controller socket target, the host has no socket to reach

This commit is contained in:
atlas 2026-11-26 15:40:29 +01:00 • committed by maia
commit 279f97e5ca

View file

@ -21,7 +21,7 @@ use zeroize::Zeroizing;
use crate::bao::Bao;
use crate::interactive::{Actions, HostFacts, Initialised, NewUser, StoreHost, Tone, Ui};
use crate::remote::Target;
use crate::remote::Swarm;
use crate::setup::{Observed, granter_unit_exists, observe};
use crate::{AddArgs, Paths, agent, forge, permissions};
@ -60,7 +60,7 @@ fn use_colour(stdout_tty: bool, no_color: Option<&str>, term: Option<&str>) -> b
/// Run `swarmctl setup`.
pub(crate) fn setup(
target: Result<Target>,
target: Result<Swarm>,
users_file: Result<PathBuf>,
authelia_bin: Result<PathBuf>,
) -> Result<()> {
@ -171,14 +171,14 @@ impl Ui for Terminal {
}
struct Live {
target: Result<Target>,
target: Result<Swarm>,
users_file: Result<PathBuf>,
authelia_bin: Result<PathBuf>,
bao: Bao,
}
impl Live {
fn target(&self) -> Result<&Target> {
fn target(&self) -> Result<&Swarm> {
self.target.as_ref().map_err(|e| anyhow!("{e:#}"))
}
}