mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +00:00
module utils: use f-strings (#10979)
* module utils: use f-strings * add changelog frag
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user