On 23/07/09 18:02, Nigel Kersten wrote:
> Signed-off-by: Nigel Kersten <[email protected]>
> ---
>  .../provider/nameservice/directoryservice.rb       |   36 
> +++++++++-----------
>  1 files changed, 16 insertions(+), 20 deletions(-)
> 
> diff --git a/lib/puppet/provider/nameservice/directoryservice.rb 
> b/lib/puppet/provider/nameservice/directoryservice.rb
> index 9daed17..f4c9d59 100644
> --- a/lib/puppet/provider/nameservice/directoryservice.rb
> +++ b/lib/puppet/provider/nameservice/directoryservice.rb
> @@ -108,18 +108,14 @@ class DirectoryService < Puppet::Provider::NameService
>              return @macosx_version_major
>          end
>          begin
> -            product_version = Facter.value(:macosx_productversion)
> -            if product_version.nil?
> -                raise Puppet::Error, "Could not determine OS X version from 
> Facter"
> -            end
> -            product_version_major = 
> product_version.scan(/(\d+)\.(\d+)./).join(".")
> +            product_version_major = 
> Facter.value(:macosx_productversion_major)

My Facter (version 1.5) doesn't have this fact (but has 
macosx_productversion).

Could it be possible to have a degraded mode, as right now I get tons of 
failing (old) tests?

I know I should upgrade (and will), but supporting (not so) older 
versions of Facter should be great, or at least produce a warning saying 
that I should upgrade.
-- 
Brice Figureau
My Blog: http://www.masterzen.fr/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" 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-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to