Fix using DNF group upgrade/remove api
This commit is contained in:
parent
8643e9cb34
commit
119c9e5d6e
1 changed files with 2 additions and 2 deletions
|
@ -399,7 +399,7 @@ def ensure(module, base, state, names, autoremove):
|
|||
for group in groups:
|
||||
try:
|
||||
try:
|
||||
base.group_upgrade(group)
|
||||
base.group_upgrade(group.id)
|
||||
except dnf.exceptions.CompsError:
|
||||
# If not already installed, try to install.
|
||||
base.group_install(group.id, dnf.const.GROUP_PACKAGE_TYPES)
|
||||
|
@ -433,7 +433,7 @@ def ensure(module, base, state, names, autoremove):
|
|||
|
||||
for group in groups:
|
||||
try:
|
||||
base.group_remove(group)
|
||||
base.group_remove(group.id)
|
||||
except dnf.exceptions.CompsError:
|
||||
# Group is already uninstalled.
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue