Fix using DNF group upgrade/remove api

pull/4420/head
Martin Krizek 2017-07-26 16:12:35 +02:00 committed by Toshio Kuratomi
parent 8643e9cb34
commit 119c9e5d6e
1 changed files with 2 additions and 2 deletions

View File

@ -399,7 +399,7 @@ def ensure(module, base, state, names, autoremove):
for group in groups: for group in groups:
try: try:
try: try:
base.group_upgrade(group) base.group_upgrade(group.id)
except dnf.exceptions.CompsError: except dnf.exceptions.CompsError:
# If not already installed, try to install. # If not already installed, try to install.
base.group_install(group.id, dnf.const.GROUP_PACKAGE_TYPES) 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: for group in groups:
try: try:
base.group_remove(group) base.group_remove(group.id)
except dnf.exceptions.CompsError: except dnf.exceptions.CompsError:
# Group is already uninstalled. # Group is already uninstalled.
pass pass