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

lifecycle_osp.yml starts with an actionless entry and fails out #5282

Open
9strands opened this issue Aug 23, 2022 · 0 comments
Open

lifecycle_osp.yml starts with an actionless entry and fails out #5282

9strands opened this issue Aug 23, 2022 · 0 comments

Comments

@9strands
Copy link
Collaborator

Describe the bug
agnosticd/ansible/lifecycle_osp.yml has a lifecycle_osp.yaml "- environment:" block that has no module or action.

To Reproduce
Steps to reproduce the behavior, ex:
Run anything that calls the file as written as of this bug report:

The entry with

- environment:
    OS_AUTH_URL: "{{ osp_auth_url }}"
    OS_USERNAME: "{{ osp_auth_username }}"
    OS_PASSWORD: "{{ osp_auth_password }}"
    OS_PROJECT_NAME: "{{ osp_project_name }}"
    OS_PROJECT_DOMAIN_ID: "{{ osp_auth_project_domain }}"
    OS_USER_DOMAIN_NAME: "{{ osp_auth_user_domain }}"

is not linked to a block and thus fails with the error:

{
"reason": "no module/action detected in task.\n\nThe error appears to be in '/tmp/awx_651067_5kw23v5i/project/ansible/lifecycle_osp.yml': line 2, 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- environment:\n ^ here\n"
}

Expected behavior
Actions that utilize the environment to use it for the file, instead of it being listed as a bare, module-less entry.

Screenshots / logs
{
"reason": "no module/action detected in task.\n\nThe error appears to be in '/tmp/awx_651067_5kw23v5i/project/ansible/lifecycle_osp.yml': line 2, 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- environment:\n ^ here\n"
}

Verions (please complete the following information):
Current development branch.

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

No branches or pull requests

1 participant