You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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", ""]}
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
The text was updated successfully, but these errors were encountered: