1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-06 12:07:14 +00:00

Reformat everything.

This commit is contained in:
Felix Fontein 2025-11-01 12:08:41 +01:00
parent 3f2213791a
commit 340ff8586d
1008 changed files with 61301 additions and 58309 deletions

View file

@ -83,7 +83,9 @@ function_namespace:
"""
from ansible_collections.community.general.plugins.module_utils.scaleway import (
SCALEWAY_REGIONS, scaleway_argument_spec, Scaleway,
SCALEWAY_REGIONS,
scaleway_argument_spec,
Scaleway,
)
from ansible.module_utils.basic import AnsibleModule
@ -109,10 +111,7 @@ def info_strategy(api, wished_fn):
def core(module):
region = module.params["region"]
wished_function_namespace = {
"project_id": module.params["project_id"],
"name": module.params["name"]
}
wished_function_namespace = {"project_id": module.params["project_id"], "name": module.params["name"]}
api = Scaleway(module=module)
api.api_path = f"functions/v1beta1/regions/{region}/namespaces"
@ -124,11 +123,13 @@ def core(module):
def main():
argument_spec = scaleway_argument_spec()
argument_spec.update(dict(
project_id=dict(type='str', required=True),
region=dict(type='str', required=True, choices=SCALEWAY_REGIONS),
name=dict(type='str', required=True)
))
argument_spec.update(
dict(
project_id=dict(type="str", required=True),
region=dict(type="str", required=True, choices=SCALEWAY_REGIONS),
name=dict(type="str", required=True),
)
)
module = AnsibleModule(
argument_spec=argument_spec,
supports_check_mode=True,
@ -137,5 +138,5 @@ def main():
core(module)
if __name__ == '__main__':
if __name__ == "__main__":
main()