From e144df7d304d331ab17ca98833bb804fc95407aa Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Sun, 10 Mar 2013 23:57:17 -0500 Subject: [PATCH] Fix call to _get_repo_options() Had forgotten to pass fromrepo along with the kwargs dict --- salt/modules/yumpkg5.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/modules/yumpkg5.py b/salt/modules/yumpkg5.py index ca4512a9bd..af3eeaff8c 100644 --- a/salt/modules/yumpkg5.py +++ b/salt/modules/yumpkg5.py @@ -79,7 +79,7 @@ def _get_repo_options(**kwargs): repo_arg = '' if fromrepo: - log.info('Restricting install to repo "{0}"'.format(fromrepo)) + log.info('Restricting to repo "{0}"'.format(fromrepo)) repo_arg = '--disablerepo="*" --enablerepo="{0}"'.format(fromrepo) else: repo_arg = '' @@ -316,7 +316,7 @@ def install(name=None, log.warning('"version" parameter will be ignored for muliple ' 'package targets') - repo_arg = _get_repo_options(**kwargs) + repo_arg = _get_repo_options(fromrepo=fromrepo, **kwargs) old = list_pkgs() downgrade = []