summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHunter Haugen <hunter@puppetlabs.com>2014-09-15 16:03:11 -0700
committerHunter Haugen <hunter@puppetlabs.com>2014-09-16 16:27:50 -0700
commitead1aa855a0a6ff6ca54ffc027c585f0b6dba0f4 (patch)
tree795d8860fab9236b8d9557a47889d9d3a3cffed8 /lib
parent45a21f46eec85a48da017af4505cc53c1de92a14 (diff)
(MODULES-428) Remove dummy warning
Puppet started raising a warning about multiple default providers due to a change in puppet. The dummy provider exists to raise an error when `provider` is not specified because there is no way to declare `provider` as a required attribute in the type. Even passing a `provider` value did not get rid of the "multiple default providers found" warning however. This commit causes the dummy provider to be the defacto default for all resources which do not have an explicit provider declared, as the posix feature is available on basically every operating system on which vcsrepo works. (There is no way to create an "always default" provider.)
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/provider/vcsrepo/dummy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/provider/vcsrepo/dummy.rb b/lib/puppet/provider/vcsrepo/dummy.rb
index f7b4e54..27bfbbe 100644
--- a/lib/puppet/provider/vcsrepo/dummy.rb
+++ b/lib/puppet/provider/vcsrepo/dummy.rb
@@ -3,7 +3,7 @@ require File.join(File.dirname(__FILE__), '..', 'vcsrepo')
Puppet::Type.type(:vcsrepo).provide(:dummy, :parent => Puppet::Provider::Vcsrepo) do
desc "Dummy default provider"
- defaultfor :vcsrepo => :dummy
+ defaultfor :feature => :posix
def working_copy_exists?
providers = @resource.class.providers.map{|x| x.to_s}.sort.reject{|x| x == "dummy"}.join(", ") rescue "none"