From 01666f6654e9afb3edbdf16cff30ceccb1beca30 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Tue, 26 Jul 2005 19:05:07 +0000 Subject: fixing lib loading test git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@462 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/client.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/puppet/client.rb b/lib/puppet/client.rb index 1e3b0f4a2..e4dd00801 100644 --- a/lib/puppet/client.rb +++ b/lib/puppet/client.rb @@ -13,20 +13,23 @@ require 'puppet/transaction' require 'puppet/transportable' require 'puppet/metric' +$noclientnetworking = false begin require 'webrick' require 'cgi' require 'xmlrpc/client' require 'xmlrpc/server' rescue LoadError => detail - $nonetworking = detail + $noclientnetworking = detail end module Puppet class NetworkClientError < RuntimeError; end class ClientError < RuntimeError; end #--------------------------------------------------------------- - unless $nonetworking + if $noclientnetworking + Puppet.err "Could not load client network libs: %s" % $noclientnetworking + else class NetworkClient < XMLRPC::Client @@methods = [ :getconfig ] -- cgit