diff options
author | Lars Kellogg-Stedman <lars@redhat.com> | 2016-12-06 21:13:24 -0500 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2016-12-19 14:29:37 -0500 |
commit | c01129492f046fdf745b432b6035605c9c613655 (patch) | |
tree | 5d7faa31701c6eaf83ea1f783424b80eee951013 /tests/unittests | |
parent | 39fb5a0240597112af8162c6c3365288450a7a77 (diff) | |
download | vyos-cloud-init-c01129492f046fdf745b432b6035605c9c613655.tar.gz vyos-cloud-init-c01129492f046fdf745b432b6035605c9c613655.zip |
set_hostname: avoid erroneously appending domain to fqdn
In some situations, cloud-init will erroneously append a default
domain to an already fully qualified hostname, resulting in something
like 'localhost.localdomain.localdomain'. This patch checks to see if
the value returned by util.get_hostname() contains a '.', and if it
does treats it as a fully qualified name.
Resolves: rhbz#1389048
LP: #1647910
Diffstat (limited to 'tests/unittests')
0 files changed, 0 insertions, 0 deletions