Skip to content

Commit

Permalink
yum module properly check for None config_file
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Miller <admiller@redhat.com>
  • Loading branch information
maxamillion committed Oct 9, 2018
1 parent 84a40b7 commit 10ac23e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ansible/modules/packaging/os/yum.py
Expand Up @@ -1306,8 +1306,8 @@ def ensure(self, repoq):
if self.conf_file and os.path.exists(self.conf_file):
self.yum_basecmd += ['-c', self.conf_file]

if repoq:
repoq += ['-c', self.conf_file]
if repoq:
repoq += ['-c', self.conf_file]

if self.skip_broken:
self.yum_basecmd.extend(['--skip-broken'])
Expand Down

0 comments on commit 10ac23e

Please sign in to comment.