modules p*: use f-strings (#10974)

* modules p*: use f-strings

* add changelog frag
This commit is contained in:
Alexei Znamensky
2025-10-26 19:48:51 +13:00
committed by GitHub
parent d51e4c188b
commit 8120e9347e
42 changed files with 299 additions and 300 deletions

View File

@@ -185,7 +185,7 @@ def add_or_update_pritunl_user(module):
if len(org_obj_list) == 0:
module.fail_json(
msg="Can not add user to organization '%s' which does not exist" % org_name
msg=f"Can not add user to organization '{org_name}' which does not exist"
)
org_id = org_obj_list[0]["id"]
@@ -273,8 +273,7 @@ def remove_pritunl_user(module):
if len(org_obj_list) == 0:
module.fail_json(
msg="Can not remove user '%s' from a non existing organization '%s'"
% (user_name, org_name)
msg=f"Can not remove user '{user_name}' from a non existing organization '{org_name}'"
)
org_id = org_obj_list[0]["id"]