modules [no]*: use f-strings (#10973)

* modules [no]*: use f-strings

* add changelog frag
This commit is contained in:
Alexei Znamensky
2025-10-26 19:48:10 +13:00
committed by GitHub
parent 50846b7560
commit 749c06cd01
44 changed files with 399 additions and 412 deletions

View File

@@ -162,7 +162,7 @@ def create_public_ip(module, oneandone_conn):
if datacenter_id is None:
_check_mode(module, False)
module.fail_json(
msg='datacenter %s not found.' % datacenter)
msg=f'datacenter {datacenter} not found.')
try:
_check_mode(module, True)
@@ -206,7 +206,7 @@ def update_public_ip(module, oneandone_conn):
if public_ip is None:
_check_mode(module, False)
module.fail_json(
msg='public IP %s not found.' % public_ip_id)
msg=f'public IP {public_ip_id} not found.')
try:
_check_mode(module, True)
@@ -245,7 +245,7 @@ def delete_public_ip(module, oneandone_conn):
if public_ip is None:
_check_mode(module, False)
module.fail_json(
msg='public IP %s not found.' % public_ip_id)
msg=f'public IP {public_ip_id} not found.')
try:
_check_mode(module, True)