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

@@ -158,11 +158,10 @@ def remove_pritunl_organization(module):
else:
module.fail_json(
msg=(
"Can not remove organization '%s' with %d attached users. "
f"Can not remove organization '{org_name}' with {org['user_count']} attached users. "
"Either set 'force' option to true or remove active users "
"from the organization"
)
% (org_name, org["user_count"])
)
module.exit_json(**result)