mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
modules r*: use f-strings (#10975)
* modules r*: use f-strings * add changelog frag * Apply suggestions from code review
This commit is contained in:
@@ -117,7 +117,7 @@ def main():
|
||||
|
||||
# sanity check: the target release at least looks like a valid release
|
||||
if target_release and not release_matcher.findall(target_release):
|
||||
module.fail_json(msg='"{0}" does not appear to be a valid release.'.format(target_release))
|
||||
module.fail_json(msg=f'"{target_release}" does not appear to be a valid release.')
|
||||
|
||||
# Will fail with useful error from s-m if system not subscribed
|
||||
current_release = get_release(module)
|
||||
|
||||
Reference in New Issue
Block a user