]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Don't generate machine names with a dot
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 28 Feb 2020 16:12:41 +0000 (17:12 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 13 Mar 2020 10:59:55 +0000 (11:59 +0100)
commit2695191a44eb7375225b4ad073825ed3563a172a
tree21c550b4f97ceeccba703aa26a5f1cf4492b6c3c
parent0fdb7385e416c9a0830dc60c0a56d55428963d74
conf: Don't generate machine names with a dot

According to the linked BZ, machined expects either valid
hostname or valid FQDN (see systemd commit
v239-3092-gd65652f1f2). While in case of multiple dots, a
trailing one doesn't violate FQDN, it does violate the rule in
case of something simple, like "domain.". But it's safe to remove
it in both cases.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1808499
Fixes: 45464db8ba502764cf37ec9335770248bdb3d9a8
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c
tests/virsystemdtest.c