summaryrefslogtreecommitdiff
path: root/lib/puppet/provider/vcsrepo/git.rb
diff options
context:
space:
mode:
authorBryan Jen <bryan.jen@gmail.com>2015-03-26 13:33:25 -0700
committerBryan Jen <bryan.jen@gmail.com>2015-03-26 13:33:25 -0700
commit01bf2a6ba11f67635569d5ab7a35f37768cbd3af (patch)
treef2ab9d3e3439a676911a0ede12b7b5d515bb611d /lib/puppet/provider/vcsrepo/git.rb
parent9a955b8746f373a1a3e47ebf67d4186b98e0094f (diff)
parentd27759141ec5592fd5d76861efa77a55d07c90a8 (diff)
downloadpuppet-vcsrepo-01bf2a6ba11f67635569d5ab7a35f37768cbd3af.tar.gz
puppet-vcsrepo-01bf2a6ba11f67635569d5ab7a35f37768cbd3af.tar.bz2
Merge pull request #240 from cmurphy/hash_ordering
Fix remote hash ordering for unit tests
Diffstat (limited to 'lib/puppet/provider/vcsrepo/git.rb')
-rw-r--r--lib/puppet/provider/vcsrepo/git.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/puppet/provider/vcsrepo/git.rb b/lib/puppet/provider/vcsrepo/git.rb
index 9d3f7f3..000032e 100644
--- a/lib/puppet/provider/vcsrepo/git.rb
+++ b/lib/puppet/provider/vcsrepo/git.rb
@@ -142,7 +142,8 @@ Puppet::Type.type(:vcsrepo).provide(:git, :parent => Puppet::Provider::Vcsrepo)
# we loop around the hash. Otherwise, we assume single url specified
# in source property
if @resource.value(:source).is_a?(Hash)
- @resource.value(:source).each do |remote_name, remote_url|
+ @resource.value(:source).keys.sort.each do |remote_name|
+ remote_url = @resource.value(:source)[remote_name]
at_path { do_update |= update_remote_url(remote_name, remote_url) }
end
else