ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
810 stars 1.49k forks source link

scaleway_sshkey and other account related modules are broken (api change on scaleway side) #5376

Open mpaulon opened 1 year ago

mpaulon commented 1 year ago

Summary

The modules scaleway_sshkey, scaleway_organization_info and maybe some other are broken. Looks like scaleway "silently deprecated the https://account.scaleway.com/organizations endpoint becuase it always return {"organizations": []} now. Looking at their golang sdk, they are now using endpoints like https://api.scaleway.com/account/v2alpha1/ssh-keys to manage sshkeys. I'll try to propose a pull-request to fix at least some of theses issues.

Issue Type

Bug Report

Component Name

community.general.scaleway_organization_info, ansible.builtin.scaleway_sshkey

Ansible Version

$ ansible --version
ansible [core 2.13.5]
  config file = /home/michael/git/lemp/infra/ansible/ansible.cfg
  configured module search path = ['/home/michael/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/michael/git/lemp/infra/ansible/env/lib/python3.10/site-packages/ansible
  ansible collection location = /home/michael/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/michael/git/lemp/infra/ansible/env/bin/ansible
  python version = 3.10.7 (main, Oct  1 2022, 04:31:04) [GCC 12.2.0]
  jinja version = 3.1.2
  libyaml = True

Community.general Version

$ ansible-galaxy collection list community.general
# /home/michael/git/lemp/infra/ansible/env/lib/python3.10/site-packages/ansible_collections
Collection        Version
----------------- -------
community.general 5.7.0  

Configuration

$ ansible-config dump --only-changed

OS / Environment

No response

Steps to Reproduce

- name: Gather Scaleway organizations information
  connection: local
  become: false
  community.general.scaleway_organization_info:
    api_token: "{{ scaleway.token }}"
  register: result

- ansible.builtin.debug:
    msg: "{{ result.scaleway_organization_info }}"

Expected Results

I expect a debug message with infos about my organizations

Actual Results

"scaleway_organization_info": []

Code of Conduct

ansibullbot commented 1 year ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 1 year ago

cc @QuentinBrosse @Spredzy @abarbare @jerome-quere @kindermoumoute @remyleone @russoz @sieben click here for bot help

ansibullbot commented 1 year ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot commented 1 year ago

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help