summaryrefslogtreecommitdiffstats
path: root/crates/core/tedge/src/cli/connect/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/core/tedge/src/cli/connect/cli.rs')
-rw-r--r--crates/core/tedge/src/cli/connect/cli.rs12
1 files changed, 2 insertions, 10 deletions
diff --git a/crates/core/tedge/src/cli/connect/cli.rs b/crates/core/tedge/src/cli/connect/cli.rs
index 654af945..7253d1a7 100644
--- a/crates/core/tedge/src/cli/connect/cli.rs
+++ b/crates/core/tedge/src/cli/connect/cli.rs
@@ -32,11 +32,7 @@ impl BuildCommand for TEdgeConnectOpt {
cloud: Cloud::C8y,
common_mosquitto_config: CommonMosquittoConfig::default(),
is_test_connection,
- service_manager: service_manager(
- context.user_manager.clone(),
- context.config_location.tedge_config_root_path,
- )?,
- user_manager: context.user_manager,
+ service_manager: service_manager(context.config_location.tedge_config_root_path)?,
},
TEdgeConnectOpt::Az { is_test_connection } => ConnectCommand {
config_location: context.config_location.clone(),
@@ -44,11 +40,7 @@ impl BuildCommand for TEdgeConnectOpt {
cloud: Cloud::Azure,
common_mosquitto_config: CommonMosquittoConfig::default(),
is_test_connection,
- service_manager: service_manager(
- context.user_manager.clone(),
- context.config_location.tedge_config_root_path,
- )?,
- user_manager: context.user_manager,
+ service_manager: service_manager(context.config_location.tedge_config_root_path)?,
},
}
.into_boxed())