We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8af0fe8 commit 168a79cCopy full SHA for 168a79c
edgelet/iotedge/src/check/checks/hostname.rs
@@ -86,8 +86,12 @@ impl Hostname {
86
//
87
// Instead, we punt on this check and assume that everything's fine if config_hostname is identical to the device hostname,
88
// or starts with it.
89
- if config_hostname != machine_hostname
90
- && !config_hostname.starts_with(&format!("{}.", machine_hostname))
+ //
+ // Azure FQDN don't support capital letter so we lower case the hostname before doing the check.
91
+ if config_hostname.to_lowercase() != machine_hostname.to_lowercase()
92
+ && !config_hostname
93
+ .to_lowercase()
94
+ .starts_with(&format!("{}.", machine_hostname.to_lowercase()))
95
{
96
return Err(Context::new(format!(
97
"configuration has hostname {} but device reports hostname {}.\n\
0 commit comments