saltstack/salt — pull request #13649 by nlm (2014-06-23 16:39:13+00:00)
Title: fixes potential ext_pillar line mismatches

The previous matching method could lead to mismatches.
Let's assume the following variables :

self.branch = "master"
self.rp_location = "http://github.com/xyz/project/pillar1"

and the following configuration :

ext_pillar:
- git: master http://github.com/xyz/project/pillar1
- git: master http://github.com/xyz/project/pillar10
- git: master http://github.com/xyz/project/pillar1

The current code :
- would not match the first line, because there is more than 1 space
- would erroneously match the second line