Issue #4488 has been updated by Stefan Schulte.

Status changed from Accepted to Closed

Browsing the log of `ssh_authorized_key/parsed.rb` the provider can handle 
comments since the beginning. But the error message above
<pre>
err: Could not prefetch ssh_authorized_key provider 'parsed': Could not parse 
line ""
</pre>

Indicates that puppet in fact stumbles across a blank line. This was addressed 
in #14127 and fixed in 2.7.15rc1 (as of commit:b4d1c65). Closing this one.
----------------------------------------
Bug #4488: ssh_authorized_key trips over comments in file
https://projects.puppetlabs.com/issues/4488#change-63327

Author: martin krafft
Status: Closed
Priority: Normal
Assignee: 
Category: ssh
Target version: 2.7.x
Affected Puppet version: 0.25.4
Keywords: ssh_authorized_key parser comments
Branch: 


I am getting:

<pre>
err: Could not prefetch ssh_authorized_key provider 'parsed': Could not parse 
line "" at /root/.ssh/authorized_keys:4
</pre>

This is due to the fact that I use comments in the authorized_keys file, which 
I assemble automatically:

<pre>
% sed -ne 4p /root/.ssh/authorized_keys
### from authorized_keys.d/[email protected]:
</pre>

Please use a more robust way to scan for puppet comments.



-- 
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.

Reply via email to