diff options
| author | Pieter van de Bruggen <pieter@puppetlabs.com> | 2011-03-25 08:59:29 -0700 |
|---|---|---|
| committer | Pieter van de Bruggen <pieter@puppetlabs.com> | 2011-03-25 08:59:29 -0700 |
| commit | 4c320cc482a33892a688d3a5072081e6d63a8310 (patch) | |
| tree | 1ca02494756c402321e84e9df2f327beb0b78bcb /lib/puppet/application | |
| parent | 53b0656048c3227048bdc317c5e917ad0c39e850 (diff) | |
| parent | 6aea116701b8e03558ef7a5a15766b267af14281 (diff) | |
| download | puppet-4c320cc482a33892a688d3a5072081e6d63a8310.tar.gz puppet-4c320cc482a33892a688d3a5072081e6d63a8310.tar.xz puppet-4c320cc482a33892a688d3a5072081e6d63a8310.zip | |
Merge branch 'tickets/master/6770'
Diffstat (limited to 'lib/puppet/application')
| -rw-r--r-- | lib/puppet/application/interface_base.rb | 6 |
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. |
