summaryrefslogtreecommitdiffstats
path: root/lib/puppet/application
diff options
context:
space:
mode:
authorPieter van de Bruggen <pieter@puppetlabs.com>2011-03-29 13:29:24 -0700
committerPieter van de Bruggen <pieter@puppetlabs.com>2011-03-29 13:29:24 -0700
commitb53cf84b76d9cbe60c2aa29eed167b05cf7b6a35 (patch)
tree4653bbedb95460bdd22720f0d07d34952ad434ba /lib/puppet/application
parent2ad8c96935ec53c2d98201ad77fd070dc40dadb6 (diff)
parentf7f1e5822f3921336872956fe07c4da4406ce8eb (diff)
downloadpuppet-b53cf84b76d9cbe60c2aa29eed167b05cf7b6a35.tar.gz
puppet-b53cf84b76d9cbe60c2aa29eed167b05cf7b6a35.tar.xz
puppet-b53cf84b76d9cbe60c2aa29eed167b05cf7b6a35.zip
Merge branch 'tickets/master/6770'
Diffstat (limited to 'lib/puppet/application')
-rw-r--r--lib/puppet/application/string_base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/application/string_base.rb b/lib/puppet/application/string_base.rb
index 5b701597d..bc627adde 100644
--- a/lib/puppet/application/string_base.rb
+++ b/lib/puppet/application/string_base.rb
@@ -72,10 +72,10 @@ class Puppet::Application::StringBase < Puppet::Application
@type = self.class.name.to_s.sub(/.+:/, '').downcase.to_sym
# TODO: These should be configurable versions.
- unless Puppet::String.string?(@type, :latest)
+ unless Puppet::String.string?(@type, :current)
raise "Could not find any version of string '#{@type}'"
end
- @string = Puppet::String[@type, :latest]
+ @string = Puppet::String[@type, :current]
@format ||= @string.default_format
# We copy all of the app options to the string.