mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-27 05:58:50 +00:00
[PR #11106/f785e9c7 backport][stable-12] replace batch of redundant to_native()/to_text() occurrences (#11140)
replace batch of redundant to_native()/to_text() occurrences (#11106)
* replace batch of redundant to_native()/to_text() occurrences
* add changelog frag
* snap sanity
* rolling back snap for now
* more cases in redhat_subscription
(cherry picked from commit f785e9c780)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
4b9ece4fbd
commit
619ea5b7b3
14 changed files with 47 additions and 45 deletions
|
|
@ -249,7 +249,7 @@ def act_on_volume(target_state, module, packet_conn):
|
|||
|
||||
else:
|
||||
if len(matching_volumes) > 1:
|
||||
_msg = f"More than one volume matches in module call for absent state: {to_native(matching_volumes)}"
|
||||
_msg = f"More than one volume matches in module call for absent state: {matching_volumes}"
|
||||
module.fail_json(msg=_msg)
|
||||
|
||||
if len(matching_volumes) == 1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue