lib/puppet/provider/nameservice.rb in puppet-3.2.4 vs lib/puppet/provider/nameservice.rb in puppet-3.3.0.rc2
- old
+ new
@@ -225,10 +225,10 @@
def getinfo(refresh)
if @objectinfo.nil? or refresh == true
@etcmethod ||= ("get" + self.class.section.to_s + "nam").intern
begin
@objectinfo = Etc.send(@etcmethod, @resource[:name])
- rescue ArgumentError => detail
+ rescue ArgumentError
@objectinfo = nil
end
end
# Now convert our Etc struct into a hash.