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
fixes #17701 - Ansible Button on Host page emits two ansible tasks #65
Conversation
There were the following issues with the commit message:
If you don't have a ticket number, please create an issue in Redmine. More guidelines are available in Coding Standards or on the Foreman wiki. This message was auto-generated by Foreman's prprocessor |
There were the following issues with the commit message:
If you don't have a ticket number, please create an issue in Redmine. More guidelines are available in Coding Standards or on the Foreman wiki. This message was auto-generated by Foreman's prprocessor |
There were the following issues with the commit message:
If you don't have a ticket number, please create an issue in Redmine. More guidelines are available in Coding Standards or on the Foreman wiki. This message was auto-generated by Foreman's prprocessor |
There were the following issues with the commit message:
If you don't have a ticket number, please create an issue in Redmine. More guidelines are available in Coding Standards or on the Foreman wiki. This message was auto-generated by Foreman's prprocessor |
Do not use turbolinks for Ansible button, which could prevent requesting the GET request twice.
There were the following issues with the commit message:
If you don't have a ticket number, please create an issue in Redmine. More guidelines are available in Coding Standards or on the Foreman wiki. This message was auto-generated by Foreman's prprocessor |
[test] |
@chilicat This is good, but I want to keep a way to run ansible tasks on demand through the API. I'll make a release with your other PRs except this one - I'll add an endpoint for Ansible tasks to the API, merge this and make another release with both patches, just to not break the endpoint /hosts/ansible_roles for current users. |
@chilicat Also mind to add a functional test to ensure everything keeps on working correctly? |
@dLobatog thanks for looking into my PRs. How do I run the unit tests locally? "I'll add an endpoint for Ansible tasks to the API" "but I want to keep a way to run ansible tasks on demand through the API" |
To run the tests locally, from the foreman directory you can run POST is fine, I tried to express what I think would make the most sense in #67 (review) |
Issue is fixed by #67 |
Steps to reproduce:
I used a chrome browser
This issue gave has particular headache since the visible ansible run was failing with all kind of weird issues caused by the second (hidden) ansible run.