mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 10:05:54 +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:
parent
749c06cd01
commit
d51e4c188b
22 changed files with 153 additions and 155 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue