The generated keys have a final linebreak at the end. This caused me problems when I included the SSH version of the public key in an Azure resource manager template in my Kubernetes Guide. I think we should use chomp to remove the final line break from all the keys. So, we would end up with expressions like ${chomp(tls_private_key.main.private_key_pem) and ${chomp(tls_private_key.main.public_key_openssh).
That being said, I wonder if the extra line break at the end indicates a bug in our TLS Provider's tls_private_key resource? I will file an issue there too.
The generated keys have a final linebreak at the end. This caused me problems when I included the SSH version of the public key in an Azure resource manager template in my Kubernetes Guide. I think we should use chomp to remove the final line break from all the keys. So, we would end up with expressions like ${chomp(tls_private_key.main.private_key_pem) and ${chomp(tls_private_key.main.public_key_openssh).
That being said, I wonder if the extra line break at the end indicates a bug in our TLS Provider's tls_private_key resource? I will file an issue there too.