]> xenbits.xensource.com Git - libvirt.git/commit
conf: do not generate machine names ending with a dash
authorJán Tomko <jtomko@redhat.com>
Tue, 14 Jan 2020 05:20:52 +0000 (06:20 +0100)
committerJán Tomko <jtomko@redhat.com>
Wed, 15 Jan 2020 16:10:20 +0000 (17:10 +0100)
commit45464db8ba502764cf37ec9335770248bdb3d9a8
tree3860e23064da9eba444c2887c04e804b08741515
parentfdd48f5b737c09a0581bf666d1578f5bd5d0de12
conf: do not generate machine names ending with a dash

As of systemd commit:

commit d65652f1f21a4b0c59711320f34266c635393c89
Author:     Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
CommitDate: 2018-12-10 09:56:56 +0100

    Partially unify hostname_is_valid() and dns_name_is_valid()

Dashes are no longer allowed at the end of machine names.

Trim the trailing dashes from the generated name before passing
it to machined.

https://bugzilla.redhat.com/show_bug.cgi?id=1790409

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/conf/domain_conf.c
tests/virsystemdtest.c