From 71e60c12aadf6faac11c0733bbbd5621daa8b8ac Mon Sep 17 00:00:00 2001 From: Brandon High Date: Thu, 17 Jul 2014 15:40:56 -0700 Subject: (PUP-2882) Fix single available upgrade Prior to this commit `puppet module upgrade` would fail with an error message about not being able to satisfy the upgrade when there is only one published release of the module. This commit changes the error message to say that there is no version to upgrade to. This should reduce some user confusion. --- spec/lib/puppet_spec/module_tool/stub_source.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'spec/lib/puppet_spec/module_tool/stub_source.rb') diff --git a/spec/lib/puppet_spec/module_tool/stub_source.rb b/spec/lib/puppet_spec/module_tool/stub_source.rb index 5cee57c10..8b5f8bbe1 100644 --- a/spec/lib/puppet_spec/module_tool/stub_source.rb +++ b/spec/lib/puppet_spec/module_tool/stub_source.rb @@ -100,6 +100,9 @@ module PuppetSpec "0.0.2" => { "pmtacceptance/stdlib" => ">= 2.2.0", "pmtacceptance/mysql" => ">= 0.0.1" }, "0.0.1" => { "pmtacceptance/stdlib" => ">= 2.2.0" }, }, + 'puppetlabs-oneversion' => { + "0.0.1" => {} + } } @available_releases.each do |name, versions| -- cgit v1.2.3