Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ibm_is_public_gateways_info modules fails with Unsupported argument "generation" #92

Open
indirakalagara opened this issue Feb 25, 2022 · 1 comment

Comments

@indirakalagara
Copy link

When trying to fetch the gateways with just region specified, ansible playbook failed with error on unsupported arguments.
Even. though the generation field is not specified, looks like the terraform script is adding the field with default set to 2.

Playbook snippet:
- name: Fetch Public Gateway Details
ibm_is_public_gateways_info:
region: "{{region}}"
register: pgw_output

Error:

TASK [Fetch Public Gateway Details] ********************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "", "rc": 1, "resource": {"_name": "ansible_20220225-102341", "_type": "ibm_is_public_gateways", "target": "ibm_is_public_gateways.ansible_20220225-102341"}, "stderr": "\nError: Unsupported argument\n\n on ibm_is_public_gateways_ansible_20220225-102341.tf line 2, in data "ibm_is_public_gateways" "ansible_20220225-102341":\n 2: region = "us-south"\n\nAn argument named "region" is not expected here.\n\n\nError: Unsupported argument\n\n on ibm_is_public_gateways_ansible_20220225-102341.tf line 3, in data "ibm_is_public_gateways" "ansible_20220225-102341":\n 3: ibmcloud_api_key = ""\n\nAn argument named "ibmcloud_api_key" is not expected here.\n\n\nError: Unsupported argument\n\n on ibm_is_public_gateways_ansible_20220225-102341.tf line 4, in data "ibm_is_public_gateways" "ansible_20220225-102341":\n 4: generation = 2\n\nAn argument named "generation" is not expected here.\n\n", "stderr_lines": ["", "Error: Unsupported argument", "", " on ibm_is_public_gateways_ansible_20220225-102341.tf line 2, in data "ibm_is_public_gateways" "ansible_20220225-102341":", " 2: region = "us-south"", "", "An argument named "region" is not expected here.", "", "", "Error: Unsupported argument", "", " on ibm_is_public_gateways_ansible_20220225-102341.tf line 3, in data "ibm_is_public_gateways" "ansible_20220225-102341":", " 3: ibmcloud_api_key = """, "", "An argument named "ibmcloud_api_key" is not expected here.", "", "", "Error: Unsupported argument", "", " on ibm_is_public_gateways_ansible_20220225-102341.tf line 4, in data "ibm_is_public_gateways" "ansible_20220225-102341":", " 4: generation = 2", "", "An argument named "generation" is not expected here.", ""], "stdout": "\nWarning: Argument is deprecated\n\nThe generation field is deprecated and will be removed after couple of\nreleases\n\n", "stdout_lines": ["", "Warning: Argument is deprecated", "", "The generation field is deprecated and will be removed after couple of", "releases", ""]}

Doc:
https://github.com/IBM-Cloud/ansible-collection-ibm/blob/master/docs/ibm_is_public_gateways_info.rst

@jimccann-rh
Copy link

I get the same error. Bummer no one has looked into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants