puppetlabs/puppetlabs-cloud-provisioner — pull request #29 by bodepd (2011-10-14 18:02:23+00:00)
Title: (#10057) Pass keyfile to the ssh_remote_execute

When getting the certname from the agent, the keyfile
wasn't being passed to ssh_remote_execute.

This caused an authentication failure.

Unfortunately, this wasn't clear from the error.

This commit also catches the Net::SSH::AuthenticationFailure
exception inside the ssh_remote_execute and passes
all other exceptions to be handled by the calling method.