Merge pull request #3386 from techhat/pkggroup

group_diff makes more sense here than group_detail
This commit is contained in:
Thomas S Hatch 2013-01-22 12:05:58 -08:00
commit adc221bdfb

View File

@ -582,13 +582,13 @@ def group_info(groupname):
'description': group.description} 'description': group.description}
def group_detail(groupname): def group_diff(groupname):
''' '''
Lists packages belonging to a certain group, and which are installed Lists packages belonging to a certain group, and which are installed
CLI Example:: CLI Example::
salt '*' pkg.group_detail 'Perl Support' salt '*' pkg.group_diff 'Perl Support'
''' '''
ret = { ret = {
'mandatory packages': {'installed': [], 'not installed': []}, 'mandatory packages': {'installed': [], 'not installed': []},
@ -621,7 +621,7 @@ def group_detail(groupname):
ret['conditional packages']['installed'].append(pkg) ret['conditional packages']['installed'].append(pkg)
else: else:
ret['conditional packages']['not installed'].append(pkg) ret['conditional packages']['not installed'].append(pkg)
return ret return {groupname: ret}
def list_repos(basedir='/etc/yum.repos.d'): def list_repos(basedir='/etc/yum.repos.d'):