-
Notifications
You must be signed in to change notification settings - Fork 10
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
Filetree_create role failing with Unexpected templating type error when using input tag of teams or roles against my AAP instance #34
Comments
@a083138 please pay attention to what repo you are posting in, I already moved your last issue to the correct repo. |
Hi, I believe it is already fixed here: #19 |
@a083138 Could you please confirm if the issue is fixed in the latest version? |
I had the same issue using the role in the https://github.com/redhat-cop/infra.controller_configuration collection. BTW, is this aap_configuration_extended in Ansible Galaxy? I haven't found it. |
We still haven't created the first release of this collection. Pinging @djdanielsson @sean-m-sullivan @Tompage1994. |
I have seen a lot of PR's and issues still so I was not sure it was in a state thought to be good enough for 1.0.0. like #44 seems like that needs to be solved before a release |
Summary
When running the filetree_create role against my AAP instance, it is failing ("Unexpected templating type error occurred...") when using the 'teams' or 'roles' input tag.
Issue Type
Ansible, Collection, Controller details
OS / ENVIRONMENT
AAP OS Version: RHEL 18.10
Desired Behavior
Role builds out file/folder structure with no failures
Actual Behavior
Please give some details of what is actually happening.
Include a [minimum complete verifiable example] with:
N/a
TASK [infra.controller_configuration.filetree_create : Match objects with roles] **************************************************************************************************************************************
task path: /Users/a083138/.ansible/collections/ansible_collections/infra/controller_configuration/roles/filetree_create/tasks/team_roles.yml:19
ok: [localhost] => (item=['Read', 'job_template']) => {
"ansible_facts": {
"object_roles": "[{'Read': {'resource_names': ['Create Execution Environment', "Migrate EE's to AAP Controller"], 'resource_type': 'job_template'}}]""
},
"ansible_loop_var": "item",
"changed": false,
"item": [
"Read",
"job_template"
]
}
fatal: [localhost]: FAILED! => {
"msg": "Unexpected templating type error occurred on ({{ object_roles +\n [{ item.0:\n {\n 'resource_names': (team_roles_lookvar |\n selectattr('name','equalto', item.0) |\n selectattr('summary_fields.resource_type','equalto', item.1) |\n map(attribute='summary_fields.resource_name')),\n 'resource_type': item.1,\n }\n }]\n}}"): can only concatenate str (not "list") to str. can only concatenate str (not "list") to str"
}
STEPS TO REPRODUCE
Run playbook to call role with 'teams' and/or 'roles' set as input_tag against AAP instance.
The text was updated successfully, but these errors were encountered: