swarmctl: drop the controller socket target, the host has no socket to reach
This commit is contained in:
parent
64d340e385
commit
279f97e5ca
1 changed files with 174 additions and 599 deletions
|
|
@ -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:#}"))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue