Skip to content

Commit

Permalink
Implement workaround for nested Edge until identityd supports parent_…
Browse files Browse the repository at this point in the history
…hostname. (#4492)
  • Loading branch information
arsing authored Feb 25, 2021
1 parent 75157d7 commit dc7c929
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions edgelet/iotedge/src/config/apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,16 @@ fn execute_inner(
aziot_certd_config::PreloadedCert::Ids(trust_bundle_certs),
);

// TODO: Remove this when IS gains first-class support for parent_hostname
if let Some(parent_hostname) = &parent_hostname {
if let aziot_identityd_config::ProvisioningType::Manual {
iothub_hostname, ..
} = &mut identityd_config.provisioning.provisioning
{
*iothub_hostname = parent_hostname.clone();
}
}

let edged_config = edgelet_docker::Settings {
base: edgelet_core::Settings {
hostname: identityd_config.hostname.clone(),
Expand Down

0 comments on commit dc7c929

Please sign in to comment.