mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
modules [no]*: use f-strings (#10973)
* modules [no]*: use f-strings * add changelog frag
This commit is contained in:
@@ -1007,7 +1007,7 @@ def main():
|
||||
for param in ('name', 'agent', 'email', 'thresholds', 'ports', 'processes'):
|
||||
if not module.params.get(param):
|
||||
module.fail_json(
|
||||
msg="%s parameter is required for a new monitoring policy." % param)
|
||||
msg=f"{param} parameter is required for a new monitoring policy.")
|
||||
try:
|
||||
(changed, monitoring_policy) = create_monitoring_policy(module, oneandone_conn)
|
||||
except Exception as ex:
|
||||
|
||||
Reference in New Issue
Block a user