summaryrefslogtreecommitdiffstats
path: root/lib/puppet/application/interface_base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/application/interface_base.rb')
-rw-r--r--lib/puppet/application/interface_base.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/application/interface_base.rb b/lib/puppet/application/interface_base.rb
index c1c02040a..841f3ca12 100644
--- a/lib/puppet/application/interface_base.rb
+++ b/lib/puppet/application/interface_base.rb
@@ -72,10 +72,10 @@ class Puppet::Application::InterfaceBase < Puppet::Application
@type = self.class.name.to_s.sub(/.+:/, '').downcase.to_sym
# TODO: These should be configurable versions.
- unless Puppet::Interface.interface?(@type, '0.0.1')
- raise "Could not find version #{1} of interface '#{@type}'"
+ unless Puppet::Interface.interface?(@type, :latest)
+ raise "Could not find any version of interface '#{@type}'"
end
- @interface = Puppet::Interface[@type, '0.0.1']
+ @interface = Puppet::Interface[@type, :latest]
@format ||= @interface.default_format
# We copy all of the app options to the interface.