summaryrefslogtreecommitdiffstats
path: root/crates/core/tedge/src/cli/connect/command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/core/tedge/src/cli/connect/command.rs')
-rw-r--r--crates/core/tedge/src/cli/connect/command.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/crates/core/tedge/src/cli/connect/command.rs b/crates/core/tedge/src/cli/connect/command.rs
index 7da926d0..faed5fde 100644
--- a/crates/core/tedge/src/cli/connect/command.rs
+++ b/crates/core/tedge/src/cli/connect/command.rs
@@ -7,7 +7,6 @@ use std::path::{Path, PathBuf};
use std::sync::Arc;
use std::time::Duration;
use tedge_config::*;
-use tedge_users::UserManager;
use tedge_utils::paths::{create_directories, ok_if_not_found, DraftFile};
use which::which;
@@ -26,7 +25,6 @@ pub struct ConnectCommand {
pub common_mosquitto_config: CommonMosquittoConfig,
pub is_test_connection: bool,
pub service_manager: Arc<dyn SystemServiceManager>,
- pub user_manager: UserManager,
}
pub enum DeviceStatus {
@@ -135,7 +133,6 @@ impl Command for ConnectCommand {
&bridge_config,
&updated_mosquitto_config,
self.service_manager.as_ref(),
- self.user_manager.clone(),
&self.config_location,
&device_type,
)?;
@@ -389,7 +386,6 @@ fn new_bridge(
bridge_config: &BridgeConfig,
common_mosquitto_config: &CommonMosquittoConfig,
service_manager: &dyn SystemServiceManager,
- user_manager: UserManager,
config_location: &TEdgeConfigLocation,
device_type: &str,
) -> Result<(), ConnectError> {
@@ -414,7 +410,6 @@ fn new_bridge(
if bridge_config.cloud_name.eq("c8y") {
println!("Creating the device in Cumulocity cloud.\n");
let () = c8y_direct_connection::create_device_with_direct_connection(
- user_manager,
bridge_config,
device_type,
)?;