ansible-community / ansible.content_builder

A collection to scaffold Ansible plugins.
GNU General Public License v3.0
31 stars 27 forks source link

Do not fail when plugin content is undefined #51

Closed NilashishC closed 1 year ago

NilashishC commented 1 year ago
SUMMARY

Fixes the following traceback:

TASK [ansible.content_builder.scaffold_plugins : Set path to main plugin file for generic plugins] ***

fatal: [localhost]: FAILED! => {"msg": "The conditional check 'plugin['content'] != 'cloud'' failed. The error was: error while evaluating conditional (plugin['content'] != 'cloud'): 'dict object' has no attribute 'content'. 'dict object' has no attribute 'content'\n\nThe error appears to be in '/root/.ansible/collections/ansible_collections/ansible/content_builder/roles/scaffold_plugins/tasks/template.yml': line 9, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n  block:\n    - name: Set path to main plugin file for generic plugins\n      ^ here\n"}
ISSUE TYPE