[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.6-1-356-g5718585

James Turnbull james at lovedthanlost.net
Fri Jan 23 14:21:55 UTC 2009


The following commit has been merged in the master branch:
commit 99ab9405fa51266d639f477f96fefe2e7229968f
Author: Nigel Kersten <nigelk at google.com>
Date:   Tue Dec 2 06:58:01 2008 -0800

    Warn that the NetInfo nameservice provider is deprecated. Use directoryservice instead

diff --git a/lib/puppet/provider/nameservice/netinfo.rb b/lib/puppet/provider/nameservice/netinfo.rb
index ac7bc94..70491da 100644
--- a/lib/puppet/provider/nameservice/netinfo.rb
+++ b/lib/puppet/provider/nameservice/netinfo.rb
@@ -1,5 +1,7 @@
-# Manage NetInfo POSIX objects.  Probably only used on OS X, but I suppose
-# it could be used elsewhere.
+# Manage NetInfo POSIX objects.
+#
+# This provider has been deprecated. You should be using the directoryservice
+# nameservice provider instead.
 
 require 'puppet'
 require 'puppet/provider/nameservice'
@@ -46,6 +48,7 @@ class NetInfo < Puppet::Provider::NameService
     end
     
     def self.instances
+        warnonce "The NetInfo provider is deprecated; use directoryservice instead"
         report(@resource_type.validproperties).collect do |hash|
             self.new(hash)
         end
@@ -131,6 +134,7 @@ class NetInfo < Puppet::Provider::NameService
     end
 
     def ensure=(arg)
+        warnonce "The NetInfo provider is deprecated; use directoryservice instead"
         super
 
         # Because our stupid type can't create the whole thing at once,
@@ -202,6 +206,7 @@ class NetInfo < Puppet::Provider::NameService
     
     # Get a report for a single resource, not the whole table
     def single_report(*properties)
+        warnonce "The NetInfo provider is deprecated; use directoryservice instead"
         self.class.report(*properties).find do |hash| hash[:name] == self.name end
     end
 

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list