mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 01:46:18 +00:00
modules g*: use f-strings (#10958)
* modules g*: use f-strings * add changelog frag * remove extraneous to_native()
This commit is contained in:
parent
a3987c9844
commit
b67e7c83cf
31 changed files with 250 additions and 245 deletions
|
|
@ -460,9 +460,9 @@ def main():
|
|||
# if both not found, module must exist
|
||||
if not gitlab_project_id and not gitlab_group_id:
|
||||
if gitlab_project and not gitlab_project_id:
|
||||
module.fail_json(msg="project '%s' not found." % gitlab_project)
|
||||
module.fail_json(msg=f"project '{gitlab_project}' not found.")
|
||||
if gitlab_group and not gitlab_group_id:
|
||||
module.fail_json(msg="group '%s' not found." % gitlab_group)
|
||||
module.fail_json(msg=f"group '{gitlab_group}' not found.")
|
||||
|
||||
this_gitlab = GitlabLabels(module=module, gitlab_instance=gitlab_instance, group_id=gitlab_group_id,
|
||||
project_id=gitlab_project_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue