Merge pull request #37234 from rallytime/bp-37167

Back-port #37167 to 2015.8
This commit is contained in:
Nicole Thomas 2016-10-25 12:33:09 -06:00 committed by GitHub
commit f49ccdf30f

View file

@ -421,7 +421,7 @@ def _get_yum_config():
# fall back to parsing the config ourselves
# Look for the config the same order yum does
fn = None
paths = ('/etc/yum/yum.conf', '/etc/yum.conf')
paths = ('/etc/yum/yum.conf', '/etc/yum.conf', '/etc/dnf/dnf.conf')
for path in paths:
if os.path.exists(path):
fn = path