summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-10-21 06:16:43 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-10-21 06:16:43 +0000
commita232e5c6ef359b600cdbc618a9791f8eda8eb081 (patch)
tree7ec9cc3700f0daae1b5216a9afd0f220a553f9b6 /lib/puppet/parser
parenta6d02920d360ac06815dcf08f3350ba92088301d (diff)
downloadpuppet-a232e5c6ef359b600cdbc618a9791f8eda8eb081.tar.gz
puppet-a232e5c6ef359b600cdbc618a9791f8eda8eb081.tar.xz
puppet-a232e5c6ef359b600cdbc618a9791f8eda8eb081.zip
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
Diffstat (limited to 'lib/puppet/parser')
-rw-r--r--lib/puppet/parser/interpreter.rb7
1 files changed, 7 insertions, 0 deletions
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