We've typically used the whole fqdn hostname as the name of the virtual machine. However, with the custom spec, it seems you cannot use the whole fqdn for the host part. I'm not really sure why, but https://communities.vmware.com/thread/309066 says a little bit.
Anyways, this is my my feeble attempt to fix that by making sure that the short hostname is used in the custom spec.
We've typically used the whole fqdn hostname as the name of the virtual machine. However, with the custom spec, it seems you cannot use the whole fqdn for the host part. I'm not really sure why, but https://communities.vmware.com/thread/309066 says a little bit.
Anyways, this is my my feeble attempt to fix that by making sure that the short hostname is used in the custom spec.