mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #3386 from techhat/pkggroup
group_diff makes more sense here than group_detail
This commit is contained in:
commit
adc221bdfb
@ -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'):
|
||||||
|
Loading…
Reference in New Issue
Block a user