As per discussion in #ubuntu-server, the following revised patch adheres to debian policy [1] with regards to populating /etc/hosts.
In absence of a hostname provided by a cloud metadata source, cc_update_etc_hosts.py will query platform.node() and construct a fqdn with a ".localhost" domain for 127.0.1.1 in /etc/hosts.
As per discussion in #ubuntu-server, the following revised patch adheres to debian policy [1] with regards to populating /etc/hosts.
In absence of a hostname provided by a cloud metadata source, cc_update_ etc_hosts. py will query platform.node() and construct a fqdn with a ".localhost" domain for 127.0.1.1 in /etc/hosts.
1. https:/ /one.ubuntu. com/files/ shareoffer/ 4f402554- ca48-4a0d- b133-47c4bf2384 15/