1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-10 05:55:13 +00:00

module utils: use f-strings (#10979)

* module utils: use f-strings

* add changelog frag
This commit is contained in:
Alexei Znamensky 2025-10-26 20:01:38 +13:00 committed by GitHub
parent b527e80307
commit 032d398c0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 28 additions and 28 deletions

View file

@ -2952,7 +2952,7 @@ class RedfishUtils(object):
resources, media_types, media_match_strict=False, vendor=vendor)
if not uri:
return {'ret': False,
'msg': f"Unable to find an available VirtualMedia resource {('supporting ' + str(media_types)) if media_types else ''}"}
'msg': f"Unable to find an available VirtualMedia resource {f'supporting {media_types}' if media_types else ''}"}
# confirm InsertMedia action found
if ('Actions' not in data or