Commit Graph

161 Commits

Author SHA1 Message Date
sean-m-sullivan 5655f766f0 linting 2020-10-10 11:56:00 -05:00
sean-m-sullivan 9bcb5ef0c9 intial update for workflow approval nodes 2020-10-10 04:06:49 -05:00
Rebeccah 5df37d4279 switched exit_json to be fail_json so it didn't trigger an error when attempting to utilize the missing_required_lib from ansible. Additionally fixed it for the second usage for correct usage. Given that it is an exception the correct one would not be to exit without failure, as exit_json does, but instead to use fail_json and be able to present the error 2020-10-01 18:28:26 -04:00
Alan Rominger 3aec1a115d fix wording 2020-09-15 22:38:37 -04:00
Alan Rominger 362d6a3204 Add new option update_secrets to allow lazy or strict updating 2020-09-15 22:38:37 -04:00
Alan Rominger 2e1f5cebb7 Further refine error message and update integration tests
Fix test with spaces

pep8 failure

More test tweaks

Even more test fixes
2020-09-10 09:49:27 -04:00
Alan Rominger a73323f3d6 Hack to delete orphaned organizations, consolidate get_one methods
minor test update

Updating the message if more than one object is found

Update test to new message
2020-09-10 09:00:50 -04:00
John Westcott IV 570251dc3d Modifying get_item_name to handle a None object 2020-09-08 15:28:57 -04:00
John Westcott IV d6f35a71d7 Adding allow_unknown option for get_item_name 2020-09-08 11:51:47 -04:00
John Westcott IV 0a8db586d1 Changing how get_one returns 2020-09-08 11:10:18 -04:00
John Westcott IV 106157c600 get_one now also returns the name field, and modifying modules for get_one and added in some IDs in a handful of unit tests 2020-09-08 11:06:01 -04:00
John Westcott IV 4c4d6dad49 Adding get_item_name and making static methods 2020-09-08 11:03:10 -04:00
John Westcott IV 51959b29de Adding name_or_id to get_one to make module more uniform 2020-09-08 11:03:10 -04:00
softwarefactory-project-zuul[bot] fcd1169093 Merge pull request #8043 from john-westcott-iv/instance_groups_module
Adding tower_instance_group module

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-09-01 20:26:44 +00:00
sean-m-sullivan 50637807fc fixed typo 2020-09-01 10:38:15 -05:00
John Westcott IV 72bdd17518 Fixing regression 2020-08-31 16:56:42 -04:00
John Westcott IV 2369bcb25c Removing forward feature needed for testing locally 2020-08-31 16:56:42 -04:00
John Westcott IV 9e29dd08fb Adding tower_instance_group module 2020-08-31 16:56:42 -04:00
sean-m-sullivan d9d454d435 Merge branch 'wait_function' of github.com:sean-m-sullivan/awx into wait_function 2020-08-31 15:24:40 -05:00
sean-m-sullivan 0bc927820b updated legacy messages 2020-08-31 15:24:32 -05:00
Sean Sullivan d0ab307787 Merge pull request #4 from ansible/devel
Rebase from Dev
2020-08-31 13:45:49 -05:00
John Westcott IV 51f4aa2b48 Adding check that we are authenticated and also have a token 2020-08-28 11:04:15 -04:00
sean-m-sullivan b3ec080e08 updated output 2020-08-28 08:25:21 -05:00
sean-m-sullivan fd77a8aca5 updated output 2020-08-28 08:22:44 -05:00
sean-m-sullivan 7bd3f9d63c updated to error if finished not in result 2020-08-28 07:37:29 -05:00
sean-m-sullivan d971375907 updated to error if finished not in result 2020-08-28 07:35:13 -05:00
sean-m-sullivan 007b0d841e updated parameters and errors 2020-08-28 07:19:39 -05:00
sean-m-sullivan 0c18587851 update to use time function 2020-08-26 23:30:18 -05:00
beeankha da732a3941 Add unit test, update lookup method to favor ID over name 2020-08-25 14:57:02 -04:00
beeankha 75a0c0ab1e Prioritize integer names over IDs more effectively 2020-08-24 17:13:22 -04:00
beeankha 54317236f3 Fix pep8 error, remove redundant var assignment 2020-08-24 17:13:22 -04:00
John Westcott IV 0fd618d88b Changing test suite and fixing user issue in tower_api 2020-08-24 17:13:21 -04:00
beeankha e9d66df77a Initial commit for tower_role name vs id lookup bug fix 2020-08-24 17:13:21 -04:00
John Westcott IV b93319e359 Updating to remove auth_type since its not longer required 2020-08-19 14:27:02 -04:00
John Westcott IV 3abd77c4c0 Fixing oauth token login and making module respect token over username/password 2020-08-19 14:12:50 -04:00
beeankha 76f08744f6 Fix linter whitespace error 2020-08-19 14:12:50 -04:00
John Westcott IV 01e08ba0e1 Fixing exit_module -> exit_json 2020-08-19 14:12:50 -04:00
John Westcott IV 8688740e93 Fixing ansible pep8 issues 2020-08-19 14:12:50 -04:00
John Westcott IV 40f6741474 Adding import/export awx kit features
Changed library structure

Origional TowerModule becomes TowerLegacyModule

TowerModule from tower_api becomes TowerAPIModule

A real base TowerModule is created in tower_module.py

A new TowerAWXKitModule is created in tower_awxkit

TowerAWXKitModule and TowerAPIModule are child classes of TowerModule
2020-08-19 14:12:50 -04:00
AlanCoding a7fe5e1dd2 Fix yamllint error and sync version with module_utils 2020-06-19 09:08:58 -04:00
Tom Page 1c78190385 Change cred_input_src to remove src_cred as primarykey
Signed-off-by: Tom Page <tpage@redhat.com>
2020-06-16 13:56:49 +01:00
John Westcott IV 0e54f76f80 Fixing missing raw from merge type 2020-06-05 16:10:26 -04:00
John Westcott IV 11da8e254d Changing documention and fixing sanity tests 2020-06-05 13:53:20 -04:00
John Westcott IV 30346618f1 Adding more through testing of tower_oauthtoken including failure messages 2020-06-05 13:53:20 -04:00
John Westcott IV e6416d770b Initial cut at tower_token module 2020-06-05 13:50:09 -04:00
AlanCoding e3814c6f0f Share inventory plugin auth code with modules
refactor shared auth option definitions to repeat less
2020-06-02 21:17:12 -04:00
AlanCoding 0c3d27e818 fix bug with config file [general] section 2020-06-02 19:05:45 -04:00
softwarefactory-project-zuul[bot] 101c70c152 Merge pull request #7222 from john-westcott-iv/fix_fail_json
Fixing fail_json error

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
2020-06-02 20:38:07 +00:00
John Westcott IV aa54cf097b Now respecting the HAS_YAML variable 2020-06-02 14:54:44 -04:00
John Westcott IV 24571166f6 Fixing fail_json error 2020-06-02 14:40:53 -04:00