summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNigel Kersten <nigelk@google.com>2009-07-30 10:15:46 -0700
committerJames Turnbull <james@lovedthanlost.net>2009-08-01 10:56:17 +1000
commit21f477a57c2e1dc1ce4b47ea6ee37f8eef46e40c (patch)
tree29b67a5454e01bd6efa0038d1fc113fa98d94005 /lib
parent2e41edbd235ddf8278073fd645821f48523a0af3 (diff)
downloadpuppet-21f477a57c2e1dc1ce4b47ea6ee37f8eef46e40c.tar.gz
puppet-21f477a57c2e1dc1ce4b47ea6ee37f8eef46e40c.tar.xz
puppet-21f477a57c2e1dc1ce4b47ea6ee37f8eef46e40c.zip
Fixes #2472. Load Facter facts when ralsh is invoked, plus test.
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/application/ralsh.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/puppet/application/ralsh.rb b/lib/puppet/application/ralsh.rb
index 8d8d306b8..6ad520dca 100644
--- a/lib/puppet/application/ralsh.rb
+++ b/lib/puppet/application/ralsh.rb
@@ -1,5 +1,6 @@
require 'puppet'
require 'puppet/application'
+require 'facter'
Puppet::Application.new(:ralsh) do
@@ -10,6 +11,7 @@ Puppet::Application.new(:ralsh) do
preinit do
@extra_params = []
@host = nil
+ Facter.loadfacts
end
option("--debug","-d")