diff --git a/salt/modules/config.py b/salt/modules/config.py index 6a2f1b7541..13d27333b9 100644 --- a/salt/modules/config.py +++ b/salt/modules/config.py @@ -224,16 +224,16 @@ def get(key, default=''): salt '*' config.get pkg:apache ''' - ret = salt.utils.traverse_dict(__opts__, key, '_|-') + ret = salt.utils.traverse_dict_and_list(__opts__, key, '_|-') if ret != '_|-': return ret - ret = salt.utils.traverse_dict(__grains__, key, '_|-') + ret = salt.utils.traverse_dict_and_list(__grains__, key, '_|-') if ret != '_|-': return ret - ret = salt.utils.traverse_dict(__pillar__, key, '_|-') + ret = salt.utils.traverse_dict_and_list(__pillar__, key, '_|-') if ret != '_|-': return ret - ret = salt.utils.traverse_dict(__pillar__.get('master', {}), key, '_|-') + ret = salt.utils.traverse_dict_and_list(__pillar__.get('master', {}), key, '_|-') if ret != '_|-': return ret return default