Return an empty dict if no search_order in ldap ext_pillar config file

I forgot to do this in https://github.com/saltstack/salt/pull/47334, it
is needed to prevent a `KeyError` in these cases.
This commit is contained in:
Erik Johnson 2018-04-27 13:11:59 -05:00
parent bcef34f7e1
commit 085883ae2d
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F

View file

@ -324,6 +324,7 @@ def ext_pillar(minion_id, # pylint: disable=W0613
'pillar_ldap: search_order missing from configuration. See the '
'documentation for more information.'
)
return {}
data = {}
for source in opts['search_order']: