Issue #14127 has been updated by Maurice Meeden.
Thanks for the fast fix. Now it works as expected. ---------------------------------------- Bug #14127: ssh_authorized_keys fails if a line is empty https://projects.puppetlabs.com/issues/14127#change-61309 Author: Maurice Meeden Status: In Topic Branch Pending Review Priority: Normal Assignee: Category: ssh Target version: Affected Puppet version: 2.6.12 Keywords: Branch: https://github.com/puppetlabs/puppet/pull/701 If ~/.ssh/authorized_keys contains an empty line, puppet raises an error and generate a complete new file: debug: Prefetching parsed resources for ssh_authorized_key err: Could not prefetch ssh_authorized_key provider 'parsed': Could not parse line "" at /root/.ssh/authorized_keys:3 If the line contains any character (e.g. a blank) puppet works as expected and ignores this line. But this should also happens with completely empty lines. Maybe the match statement in /usr/lib64/ruby/vendor_ruby/1.8/puppet/provider/ssh_authorized_key/parsed.rb is not correct? text_line :blank, :match => /^\s+/ But I've tried many other match-statements without success. Is it possible, that the algorithm fails somewhere before? -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
