ansible-collection-ibm
ansible-collection-ibm copied to clipboard
fixed data sources without parameter issue
PR fixes the issue of unsupported attributes for datasources without parameters
for example:
ibm_is_public_gateways_info.py
this module generates a TF config of the format below
data ibm_is_public_gateways "ansible_20220307-225058" {
}
LOG:
TASK [Fetch Public Gateway Details] ************************************************************************************************************************************************
task path: /Users/anil/.ansible/collections/ansible_collections/ibm/cloudcollection/examples/appid-instance-creation/create.yml:7
ok: [localhost] => {"changed": false, "rc": 0, "resource": {"id": "2022-03-07 18:20:50.670458 +0000 UTC", "public_gateways": []}, "stderr": "", "stderr_lines": [], "stdout": "data.ibm_is_public_gateways.ansible_20220307-235043: Refreshing state...\n\nWarning: Argument is deprecated\n\nThe generation field is deprecated and will be removed after couple of\nreleases\n\n\nApply complete! Resources: 0 added, 0 changed, 0 destroyed.\n", "stdout_lines": ["data.ibm_is_public_gateways.ansible_20220307-235043: Refreshing state...", "", "Warning: Argument is deprecated", "", "The generation field is deprecated and will be removed after couple of", "releases", "", "", "Apply complete! Resources: 0 added, 0 changed, 0 destroyed."]}
META: ran handlers
META: ran handlers
PLAY RECAP *************************************************************************************************************************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0