qemu: alias: Generate 'qomName' of disk with useraliases
qemu: alias: Generate 'qomName' of disk with useraliases

Commit fb64e176f4f forgot to delete the check that short-circuits the
disk alias creation if the alias is already present. The side effect
of this is that the creation qomName which is necessary to be able to
refer to disk frontends when -blockdev is used was skipped when user
aliases are used.

Fix it by deleting the check. Also prevent any potential memory leaks
from calling this function repeatedly by creating the qomName only when
it's not present.

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

Signed-off-by: Peter Krempa <2cf5c04c61aa466e4a47bfedc747d17279c72ffc@redhat.com>
Reviewed-by: Ján Tomko <4cab11cfb98d3c937327354a78eb07dbb6ee2bc6@redhat.com>

fabianfreyer/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,crobinso/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,nertpinx/libvirt,andreabolognani/libvirt,crobinso/libvirt,olafhering/libvirt,libvirt/libvirt,crobinso/libvirt,zippy2/libvirt,nertpinx/libvirt,olafhering/libvirt,jfehlig/libvirt,nertpinx/libvirt,jardasgit/libvirt,andreabolognani/libvirt,libvirt/libvirt,crobinso/libvirt,olafhering/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,zippy2/libvirt,jfehlig/libvirt,nertpinx/libvirt,jardasgit/libvirt,zippy2/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,olafhering/libvirt,zippy2/libvirt,jardasgit/libvirt,libvirt/libvirt,andreabolognani/libvirt,libvirt/libvirt