From 990e8e3caadf488b5dd1d6b3bcb30df492f99647 Mon Sep 17 00:00:00 2001 From: Francois Deppierraz Date: Sat, 27 Sep 2008 18:44:13 +0200 Subject: Fix #1530: Correctly parse ssh type 1 keys This doesn't implies that puppet can managed SSH type 1 keys, it only ignores them. --- lib/puppet/provider/ssh_authorized_key/parsed.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib') diff --git a/lib/puppet/provider/ssh_authorized_key/parsed.rb b/lib/puppet/provider/ssh_authorized_key/parsed.rb index 602e6dd1b..5411a1fb8 100644 --- a/lib/puppet/provider/ssh_authorized_key/parsed.rb +++ b/lib/puppet/provider/ssh_authorized_key/parsed.rb @@ -30,6 +30,12 @@ Puppet::Type.type(:ssh_authorized_key).provide(:parsed, end } + record_line :key_v1, + :fields => %w{options bits exponent modulus name}, + :optional => %w{options}, + :rts => /^\s+/, + :match => /^(?:(.+) )?(\d+) (\d+) (\d+)(?: (.+))?$/ + def prefetch # This was done in the type class but path expansion was failing for # not yet existing users, the only workaround I found was to move that -- cgit