Skip to content

Commit

Permalink
Fix error in warning message (#7103)
Browse files Browse the repository at this point in the history
Cherry-pick fda8ade.
  • Loading branch information
damonbarry authored Sep 1, 2023
1 parent 9423fe1 commit 978ccaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edgelet/iotedge/src/config/apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ async fn execute_inner(
.map_err(|err| format!("{:?}", err))?;
if &hostname != new_hostname && !containers.is_empty() {
return Err(format!("Cannot apply config because the hostname in the config {} is different from the previous hostname {}. To update the hostname, run the following command which deletes all IoT Edge modules and reapplies the configuration. Or, revert the hostname change in the config.toml file.
sudo iotedge system stop && sudo docker rm -f $(sudo docker ps -aq -f \"label=net.azure-devices.edge.owner=Microsoft.Azure.Devices.Edge.Agent\")) && sudo iotedge config apply.
sudo iotedge system stop && sudo docker rm -f $(sudo docker ps -aq -f \"label=net.azure-devices.edge.owner=Microsoft.Azure.Devices.Edge.Agent\") && sudo iotedge config apply
Warning: Data stored in the modules is lost when above command is executed.", &hostname, &new_hostname).into());
}
} else {
Expand Down

0 comments on commit 978ccaa

Please sign in to comment.