diff options
Diffstat (limited to 'lib/blink/client.rb')
-rw-r--r-- | lib/blink/client.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/blink/client.rb b/lib/blink/client.rb index ce92d7a97..3f64c37ba 100644 --- a/lib/blink/client.rb +++ b/lib/blink/client.rb @@ -26,11 +26,11 @@ module Blink @nil = nil @url = hash[:Server] if hash.include?(:Listen) and hash[:Listen] == false - Blink.notice "We're local" + Blink.notice "We're a local client" @localonly = true @driver = @url else - Blink.notice "We're networked" + Blink.notice "We're a networked client" @localonly = false @driver = SOAP::RPC::Driver.new(@url, 'urn:blink-server') @driver.add_method("getconfig", "name") @@ -53,7 +53,12 @@ module Blink Blink.debug "server is %s" % @url #client.loadproperty('files/sslclient.properties') Blink.notice("getting config") - objects = @driver.getconfig(self) + objects = nil + if @localonly + objects = @driver.getconfig(self) + else + objects = @driver.getconfig(Blink::Fact["hostname"]) + end self.config(objects) end |