Skip to content

Commit

Permalink
Validate connection string during iotedge config mp (#4855)
Browse files Browse the repository at this point in the history
  • Loading branch information
daprilik authored Apr 19, 2021
1 parent 3393473 commit 10c82de
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
40 changes: 20 additions & 20 deletions edgelet/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion edgelet/iotedge/src/config/mp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ To reconfigure IoT Edge, run:
provisioning: common_config::super_config::Provisioning {
provisioning: common_config::super_config::ProvisioningType::Manual {
inner: common_config::super_config::ManualProvisioning::ConnectionString {
connection_string,
connection_string: common_config::super_config::ConnectionString::new(
connection_string,
)
.map_err(|e| format!("invalid connection string: {}", e))?,
},
},
},
Expand Down

0 comments on commit 10c82de

Please sign in to comment.