diff options
author | Bryan Jen <bryan.jen@gmail.com> | 2015-03-26 13:33:25 -0700 |
---|---|---|
committer | Bryan Jen <bryan.jen@gmail.com> | 2015-03-26 13:33:25 -0700 |
commit | 01bf2a6ba11f67635569d5ab7a35f37768cbd3af (patch) | |
tree | f2ab9d3e3439a676911a0ede12b7b5d515bb611d /lib/puppet/provider/vcsrepo/git.rb | |
parent | 9a955b8746f373a1a3e47ebf67d4186b98e0094f (diff) | |
parent | d27759141ec5592fd5d76861efa77a55d07c90a8 (diff) | |
download | puppet-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.rb | 3 |
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 |