nmasse-itix / threescale-cicd

An Ansible module that enables Continuous Delivery with Red Hat 3scale API Management Platform (3scale AMP)
https://galaxy.ansible.com/nmasse-itix/threescale-cicd/
MIT License
16 stars 13 forks source link

The playbook fails with hard-to-decipher error message when there is no security requirement #49

Open nmasse-itix opened 5 years ago

nmasse-itix commented 5 years ago
TASK [nmasse-itix.threescale-cicd : Abort on deprecated feature -> the "sso" inventory group] ***
fatal: [lbroudou-redhat-admin.3scale.net]: FAILED! => {"msg": "The conditional check 'threescale_cicd_sso_issuer_endpoint|default(\"\")|length > 0 and 'sso' in groups and groups['sso'] > 0 and threescale_cicd_api_backend_version == 'oidc' and not threescale_cicd_deprecated_features|default(false)|bool' failed. The error was: error while evaluating conditional (threescale_cicd_sso_issuer_endpoint|default(\"\")|length > 0 and 'sso' in groups and groups['sso'] > 0 and threescale_cicd_api_backend_version == 'oidc' and not threescale_cicd_deprecated_features|default(false)|bool): 'str object' has no attribute 'keys'\n\nThe error appears to have been in '/var/lib/awx/projects/_6__deploy_api_to_3scale/tasks/steps/variables_from_inventory.yml': line 3, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Abort on deprecated feature -> the \"sso\" inventory group\n  ^ here\n"}
nmasse-itix commented 5 years ago

Unearthed by @lbroudoux.