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

Not able to retrive the image. #61

Open
akkaushi opened this issue Jun 2, 2021 · 3 comments · May be fixed by #62
Open

Not able to retrive the image. #61

akkaushi opened this issue Jun 2, 2021 · 3 comments · May be fixed by #62

Comments

@akkaushi
Copy link

akkaushi commented Jun 2, 2021

I am using ibm.cloudcollection:1.25.0. Getting below error while retrieving the image. This error is not coming when i am using
ibm.cloudcollection:1.21.0 .

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

Vaishnavi is helping me in resolving this issue,

@jaywcarman
Copy link
Collaborator

Hi @akkaushi, I believe there is a bug when modules do not support any top level arguments, such as the ibm_is_images_info you're trying to use.

If you look at the module source, here's the empty TL_ALL_PARAMETERS list:
https://github.com/IBM-Cloud/ansible-collection-ibm/blob/master/plugins/modules/ibm_is_images_info.py#L60-L61

Due to a change introduced in 93786dc any module with an empty TL_ALL_PARAMETERS list will add unsupported arguments into the TF block.

@jaywcarman jaywcarman linked a pull request Jun 9, 2021 that will close this issue
@joergrenn
Copy link

Hi,
I am having the same issues retrieving the images.
Is there a workaround until this is fixed?

@jaywcarman
Copy link
Collaborator

Hi @joergrenn, I submitted pull-request #62 to fix this problem. The fix, as it is, causes a new issue with lists of dicts so it's still a work in progress.

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

Successfully merging a pull request may close this issue.

3 participants