From a232e5c6ef359b600cdbc618a9791f8eda8eb081 Mon Sep 17 00:00:00 2001 From: luke Date: Fri, 21 Oct 2005 06:16:43 +0000 Subject: Made tweaks here and there to get it running better on my local network. I am inches away from that happening. All tests pass. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@720 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/parser/interpreter.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/puppet/parser') diff --git a/lib/puppet/parser/interpreter.rb b/lib/puppet/parser/interpreter.rb index e076bc1ca..e6a0bdc2b 100644 --- a/lib/puppet/parser/interpreter.rb +++ b/lib/puppet/parser/interpreter.rb @@ -41,6 +41,13 @@ module Puppet # Really, we should stick multiple names in here # but for now just make a simple array names = [client] + + # if the client name is fully qualied (which is normally will be) + # add the short name + if client =~ /\./ + names << client.sub(/\..+/,'') + end + begin if @usenodes unless client -- cgit