mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 22:00:22 -07:00
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:
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue