[Puppet-dev] [PATCH/facter 2/2] Fixed failing test introduced by previous commit

2010-05-07 Thread Marc Fournier
Signed-off-by: Marc Fournier marc.fourn...@camptocamp.com --- lib/facter/util/manufacturer.rb |2 +- spec/unit/util/manufacturer.rb |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/facter/util/manufacturer.rb b/lib/facter/util/manufacturer.rb index

[Puppet-dev] fixes for #3740

2010-05-07 Thread Marc Fournier
Hello, I'm not sure to understand the use of these trailing dots I removed with the 2nd patch. As there isn't many tests for this function, maybe this breaks something else and needs more work. -- You received this message because you are subscribed to the Google Groups Puppet Developers

Re: [Puppet-dev] [PATCH/facter 1/2] Fixes #3740 - split dmi output on regex

2010-05-07 Thread Paul Nasrat
On 7 May 2010 08:21, Marc Fournier marc.fourn...@camptocamp.com wrote: Splitting dmi output on the string /^Handle/ didn't work, and caused the function to match the wrong key if it was found more than once. The intended behaviour of the function is restored by splitting the dmi output on

Re: [Puppet-dev] fixes for #3740

2010-05-07 Thread Paul Nasrat
On 7 May 2010 08:21, Marc Fournier marc.fourn...@camptocamp.com wrote: Hello, I'm not sure to understand the use of these trailing dots I removed with the 2nd patch. As there isn't many tests for this function, maybe this breaks something else and needs more work. If I have time over the

[Puppet-dev] [PATCH/puppet 1/1] Fixes #3745 Catch unhandled exception in ssh_authorized_key provider

2010-05-07 Thread Sean Millichamp
If the target is not specified it is automatically set to the user's home directory. If the user does not exist when the generation of the target path occurs then an ArgumentError exception is raised but not caught. This patch catches the ArgumentError and raises a Puppet::Error instead to more

Re: [Puppet-dev] fixes for #3740

2010-05-07 Thread Markus Roberts
I'm not sure to understand the use of these trailing dots I removed with the 2nd patch. As there isn't many tests for this function, maybe this breaks something else and needs more work. I'm not sure either, but looking at it I'm dubious of the regex anyway; specifically, the 0x\d+ segment,

Re: [Puppet-dev] [PATCH/puppet 1/1] Fixes #3745 Catch unhandled exception in ssh_authorized_key provider

2010-05-07 Thread Markus Roberts
+1 Good catch Normally expand_path deals with non-existent directories fine, but in this case it can't predict what the users home direct will be if (when) the user is eventually created. I wonder if we should specify the missing user as a resource, like so: raise Puppet::Error, Target not