Closed wywself closed 2 years ago
Hello,
According to https://datatracker.ietf.org/doc/html/rfc952, the hostname cannot end with a hyphen (can be a digit or a letter). At the time of the change, replacing the hyphen with a digit or a letter made sense.
Do you have an issue caused by this substitution?
Thank you, Adrian Vladu
hello,
the code
hostname = re.sub(r'-$', '0', hostname)
in cloudbase-init/utils/hostname.py will replace the last '-' to '0', What does this substitution mean? why is this necessary?Can someone help me please? Thank you.