Skip to content

Commit

Permalink
Minor formatting fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed Jul 25, 2013
1 parent 67c0fb1 commit b235d11
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions salt/modules/yumpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,18 @@ def _set_repo_options(yumbase, **kwargs):

try:
if fromrepo:
log.info('Restricting to repo \'{0}\''.format(fromrepo))
log.info('Restricting to repo {0!r}'.format(fromrepo))
yumbase.repos.disableRepo('*')
yumbase.repos.enableRepo(fromrepo)
else:
if disablerepo:
log.info('Disabling repo \'{0}\''.format(disablerepo))
log.info('Disabling repo {0!r}'.format(disablerepo))
yumbase.repos.disableRepo(disablerepo)
if enablerepo:
log.info('Enabling repo \'{0}\''.format(enablerepo))
log.info('Enabling repo {0!r}'.format(enablerepo))
yumbase.repos.enableRepo(enablerepo)
except yum.Errors.RepoError as e:
return e
except yum.Errors.RepoError as exc:
return exc


def latest_version(*names, **kwargs):
Expand Down

0 comments on commit b235d11

Please sign in to comment.