commit d23d25b3a0a705dc1357b33ef11577f05625aef9
Author: Martin Kalcok <email address hidden>
Date: Wed Jan 5 13:46:10 2022 +0100
Fix socket.fqdn() not returning full hostname
This change aims to make resolving of the unit's
FQDN more consistent. Python's standard
`socket.getfqdn()` can "fail" in some conditions
and return only hostname, without the domain
part, even in cases when `hostname -f` would
return correct fqdn.
This new approach provides behavior consistent
with executing `hostname -f`
Reviewed: https:/ /review. opendev. org/c/openstack /charm- nova-compute/ +/823506 /opendev. org/openstack/ charm-nova- compute/ commit/ d23d25b3a0a705d c1357b33ef11577 f05625aef9
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit d23d25b3a0a705d c1357b33ef11577 f05625aef9
Author: Martin Kalcok <email address hidden>
Date: Wed Jan 5 13:46:10 2022 +0100
Fix socket.fqdn() not returning full hostname
This change aims to make resolving of the unit's getfqdn( )` can "fail" in some conditions
FQDN more consistent. Python's standard
`socket.
and return only hostname, without the domain
part, even in cases when `hostname -f` would
return correct fqdn.
This new approach provides behavior consistent
with executing `hostname -f`
Closes-Bug: #1955164 1960402dfcba61b ed5ce309a6f
Change-Id: Icc39b32b3e471c