dnf - fix error formatting of module name in error message (#58647)
This commit is contained in:
parent
1f427249d5
commit
1c2c1c15d0
2 changed files with 5 additions and 24 deletions
|
@ -0,0 +1,2 @@
|
|||
bugfixes:
|
||||
- dnf - fix formatting of module name in error message (https://github.com/ansible/ansible/pull/58647)
|
|
@ -946,14 +946,7 @@ class DnfModule(YumDnf):
|
|||
self.module_base.install([module])
|
||||
self.module_base.enable([module])
|
||||
except dnf.exceptions.MarkingErrors as e:
|
||||
failure_response['failures'].append(
|
||||
" ".join(
|
||||
(
|
||||
' '.join(module),
|
||||
to_native(e)
|
||||
)
|
||||
)
|
||||
)
|
||||
failure_response['failures'].append(' '.join((module, to_native(e))))
|
||||
|
||||
# Install groups.
|
||||
for group in groups:
|
||||
|
@ -1016,14 +1009,7 @@ class DnfModule(YumDnf):
|
|||
response['results'].append("Module {0} upgraded.".format(module))
|
||||
self.module_base.upgrade([module])
|
||||
except dnf.exceptions.MarkingErrors as e:
|
||||
failure_response['failures'].append(
|
||||
" ".join(
|
||||
(
|
||||
' '.join(module),
|
||||
to_native(e)
|
||||
)
|
||||
)
|
||||
)
|
||||
failure_response['failures'].append(' '.join((module, to_native(e))))
|
||||
|
||||
for group in groups:
|
||||
try:
|
||||
|
@ -1087,14 +1073,7 @@ class DnfModule(YumDnf):
|
|||
self.module_base.disable([module])
|
||||
self.module_base.reset([module])
|
||||
except dnf.exceptions.MarkingErrors as e:
|
||||
failure_response['failures'].append(
|
||||
" ".join(
|
||||
(
|
||||
' '.join(module),
|
||||
to_native(e)
|
||||
)
|
||||
)
|
||||
)
|
||||
failure_response['failures'].append(' '.join((module, to_native(e))))
|
||||
|
||||
for group in groups:
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue