@Mark, thanks for the comments. I think you are right, we can just leave the single character case alone. And the host update problem, I think you are right also, that isn't a problem.
@Eli, thanks for working with me on this.
Also the display_name = "-----", will lead to instance.hostname = ""
I think we should fix this.
My first idea is if the hostname become empty after strip invalid characters, we use "server [uuid]" instead of it.
But that still not good for non-english users. Maybe we can enable user to set hostname in the future with microversions
@Mark, thanks for the comments. I think you are right, we can just leave the single character case alone. And the host update problem, I think you are right also, that isn't a problem.
@Eli, thanks for working with me on this.
Also the display_name = "-----", will lead to instance.hostname = ""
I think we should fix this.
My first idea is if the hostname become empty after strip invalid characters, we use "server [uuid]" instead of it.
But that still not good for non-english users. Maybe we can enable user to set hostname in the future with microversions