1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00
Commit Graph

3813 Commits

Author SHA1 Message Date
Matthew Jones
9900b13953 Revert "Handle the situation where a Job Template's inventory has been removed"
This reverts commit 12201de3cb344b6caafeb112f7db7135b049821d.
2015-01-07 20:03:04 -05:00
Matthew Jones
932c276829 Handle the situation where a Job Template's inventory has been removed
and we are trying to determine if a user has the ability to edit or copy it.
2015-01-07 15:13:14 -05:00
Chris Church
d826cf0a0a Add support for changing proot verbosity via settings. 2015-01-07 13:11:24 -05:00
Jared Tabor
b7a85f7f3c Job submission
had to adjust the job submission to correctly pass empty strings for extra vars and for survey questions
2015-01-07 10:49:58 -05:00
Chris Church
719669f409 Show formatted output instead of raw HTML for job stdout in browsable API. 2015-01-06 17:25:13 -05:00
Jared Tabor
9848a37b02 Force user to login before opening web sockets
Rearranged the series of events so that the socket handshake happens after the user logs in.
2015-01-06 17:00:22 -05:00
Chris Church
6996c66619 Wrap commands with proot first, then ssh-agent. Fixes issue from https://trello.com/c/GU6kiuzq where playbook runs to completion but returns a nonzero exit code. 2015-01-06 15:54:08 -05:00
Jared Tabor
9c3b3aab90 Variable parsing
expanded the variable parsing to disregard an empty string inside of an empty string ("\"\"")
2015-01-06 12:54:34 -05:00
Jared Tabor
5e2f915236 Socket reconnection logic
To test the socket reconnection logic, i've increased the number of times the UI will attempt to try and connect to the socket url.
2015-01-06 11:30:24 -05:00
Chris Church
7c7a68dfad Include return code in exception message when task has an error or is canceled. 2015-01-06 11:27:34 -05:00
Matthew Jones
ba06fc0f69 Allow recv_connect on the base socket namespace 2015-01-06 11:14:28 -05:00
Jared Tabor
7d63f1dbf0 Socket.js error message
I've added an error message to be posted to the javascript console anytime the socket service has an error. This should help in debugging issues down the line.
2015-01-06 10:22:44 -05:00
Matthew Jones
a53071ff07 Only consider 50 tasks when managing the task graph 2015-01-06 10:12:24 -05:00
Jared Tabor
6fccee404a Job Submission
The job submission should NOT send an empty extra_vars dict if no extra variable are collected as a result of the job submission prompts. I was under the impression that an empty extra vars dict would be disregarded. An empty extra_vars dict will in fact overwrite any extra_vars in the JT with a blank set of extra_vars
2015-01-05 18:27:35 -05:00
Luke Sneeringer
86a47bb11c Ensure extra_vars is initiated. 2015-01-05 16:51:11 -06:00
Matthew Jones
21d45b828f Fix up an issue where we wouldn't properly show can_edit or can_copy 2015-01-05 16:28:31 -05:00
Jared Tabor
5d5213ba4c Socket.js
removing 'force new connection' line again
2015-01-05 16:07:36 -05:00
Jared Tabor
f6baacfbe2 Socket.js
adding 'force new connection' line back into socket file
2015-01-05 11:14:40 -05:00
Jared Tabor
a2b5c38436 Typo on survey help 2015-01-05 09:40:30 -05:00
Jared Tabor
b0c9845bc3 Survey maker prevent duplicate vars
Added check in survey maker to prevent saving a question that uses a variable that is already in use.
2014-12-19 14:28:38 -05:00
Jared Tabor
54465d4b31 Socket.js
removing the line i added for the security patch per Matt's request
2014-12-19 14:22:13 -05:00
Jared Tabor
c7c25250a7 Dashboard host count graph
Pie chart tooltip wasn't displaying values with commas properly
2014-12-19 13:57:22 -05:00
Jared Tabor
e41de1684c Job Template form survey check
The job template form wasn't checking for survey in every scenario
2014-12-19 12:18:23 -05:00
Jared Tabor
05ff0a14a4 Job submission
if survey is enabled and not prompting for extra vars then get the extra vars from the job template
2014-12-19 12:05:09 -05:00
Matthew Jones
526e488e78 Incorrect assumption that we needed to merge extra vars manually... now
passing extra vars to the job template launchc will override what is
coming from the job template
2014-12-19 10:51:55 -05:00
Matthew Jones
da658ee524 Fix an issue with relaunching jobs 2014-12-18 16:39:04 -05:00
Jared Tabor
cd486b6d9a Job detail page
When the job run was complete the interval was not being turned off that would continue to update the DOM
2014-12-18 16:29:14 -05:00
Jared Tabor
f5100ee110 Cleanup tower modal issue between saves
cleaned up the management modal between states
2014-12-18 14:25:41 -05:00
Matthew Jones
58ef1df906 Remove foob :embarassed: 2014-12-18 14:23:09 -05:00
Luke Sneeringer
27e8d13790 Do not run task system on secondaries. 2014-12-18 12:14:49 -06:00
Jared Tabor
50372f9c38 Prompt for credentials
fixed prompt for credentials so that ssh and ssh key unlock were both accounted for
2014-12-18 10:52:53 -05:00
Matthew Jones
9ce6101cd4 Do not display inventory scripts for which the organization is inactive 2014-12-18 10:04:40 -05:00
Matthew Jones
45a7c1647f Fix error message returned based on variables_needed_to_start 2014-12-18 08:07:51 -05:00
Matthew Jones
a130ac88dd Fix an bug where I wouldn't properly error out when survey validation
would fail
2014-12-17 22:39:11 -05:00
Matthew Jones
6f5d450e8d Fix an issue that would not allow credential to be posted when launching
a job
2014-12-17 21:09:51 -05:00
Jared Tabor
be2f2596f3 Made delete prompts use the same styling
made the delete prompts more uniform
2014-12-17 17:49:45 -05:00
Jared Tabor
7d0e6d8f53 Account menu for Tower after portal mode
the account menu for tower was displaying items for non-admin users after going to portal page and back to tower.
2014-12-17 17:41:53 -05:00
Jared Tabor
318da8522f Passing vars to API via extra_vars in job launch
We changed this at one point to have all vars passed on the root level, but for uniformity we have changed it back to using the extra_vars object
2014-12-17 17:29:43 -05:00
Matthew Jones
41cabb0899 Add the ability to cleanup management jobs in the cleanup_jobs
management command
2014-12-17 16:54:13 -05:00
Luke Sneeringer
fd6eb66b20 Secondaries should not have schedules. 2014-12-17 15:33:16 -06:00
Matthew Jones
d4879506c2 Switch to using extra_vars for survey variables, fix up some unit tests
related to that and some issues with system jobs
2014-12-17 16:04:55 -05:00
Jared Tabor
6e3cd5bc54 Added "Manual" to inventory source options
The 'manual' option was not being shown b/c it's value was an empty string.
2014-12-17 15:29:25 -05:00
Matthew Jones
7d9f4aac47 Working smart_str in projects unit tests 2014-12-17 14:13:59 -05:00
Luke Sneeringer
c02647cf04 Always allow the /ping/ endpoint, even on secondaries.
Also, if content is None, it does not have the keys we are checking for
in the ./configure script.
2014-12-17 13:09:58 -06:00
Luke Sneeringer
efee35bf70 Fix redirect. 2014-12-17 12:29:58 -06:00
Luke Sneeringer
719ae63a28 Fix error causing single-host HA environments to report not HA. 2014-12-17 12:22:53 -06:00
Matthew Jones
0ffa7588e1 Fix up a unit test for project paths 2014-12-17 13:04:33 -05:00
Matthew Jones
f4e67f789f More making sure we are using smart_str 2014-12-17 12:59:52 -05:00
Matthew Jones
1f723e9404 More work on unicode for project dirs 2014-12-17 12:52:29 -05:00
Matthew Jones
edb646fdf9 Use smart_str more widely with project paths... hopefully this takes
care of the remaining issues
2014-12-17 11:06:56 -05:00