We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tedge connect c8y --test
1 parent 30e2434 commit 172caabCopy full SHA for 172caab
crates/core/tedge/src/cli/connect/command.rs
@@ -65,7 +65,11 @@ impl Command for ConnectCommand {
65
let updated_mosquitto_config = CommonMosquittoConfig::from_tedge_config(config);
66
67
if self.is_test_connection {
68
- if self.check_if_bridge_exists(&bridge_config) {
+ // If the bridge is part of the mapper, the bridge config file won't exist
69
+ // TODO tidy me up once mosquitto is no longer required for bridge
70
+ if bridge_config.bridge_location == BridgeLocation::BuiltIn
71
+ || self.check_if_bridge_exists(&bridge_config)
72
+ {
73
return match self.check_connection(config) {
74
Ok(DeviceStatus::AlreadyExists) => {
75
let cloud = bridge_config.cloud_name;
0 commit comments