OK it seems all is well and that error is shown if the sshpubkey_username fact is not yet available in the puppetdb. Once available it all works fine.
-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/61fc0623-0d04-4a9e-a379-5cb3696e9d1a%40googlegroups.com.