Merge pull request #22158 from rallytime/bp-22107

Backport #22107 to 2015.2
This commit is contained in:
Nicole Thomas 2015-03-30 13:48:34 -06:00
commit f918cf2296

View File

@ -190,6 +190,8 @@ def _parse_profile(profile):
if not _profile:
msg = 'Pillar key for profile {0} not found.'.format(profile)
raise SaltInvocationError(msg)
else:
_profile = profile
hosts = _profile.get('hosts')
index = _profile.get('index')
return (hosts, index)