1
0
mirror of https://github.com/ansible/tower-cli.git synced 2026-02-06 00:48:50 +01:00

35 Commits

Author SHA1 Message Date
AlanCoding
fd051703b4 Update docs and tests for credential fixes 2019-10-25 08:58:11 -04:00
AlanCoding
31fd5d8b25 Get send/receive to work with AWX 8.0.0 and JT credentials 2019-10-24 11:00:11 -04:00
marcel
8bf16eaf12 Fix 'Found more than one unified job' bug 2019-07-17 21:38:56 +02:00
John Westcott IV
e7a5d275bd #706 Fixing issue when importing a job template with a schedule. 2019-07-03 08:53:43 -04:00
jainnikhil30
1e377c4117 correc the if condition 2019-04-01 19:24:30 +05:30
jainnikhil30
82c1bf3f4c fixing required not being present in inputs for custom credentials 2019-04-01 18:32:43 +05:30
Alan Rominger
0e356fd7fa Merge pull request #683 from jainnikhil30/master
Fix the res_name for workflow labels
2019-04-01 08:37:52 -04:00
jainnikhil30
cf7793f548 use asset_type instead of keyword_arg_template_id 2019-03-29 17:59:37 +05:30
jainnikhil30
7eaeab3317 change the resolution name for workflow in send 2019-03-26 10:35:08 +05:30
John Westcott IV
4c2ffc78ab Allowing for host in multiple groups 2019-03-25 14:19:39 -04:00
Bill Nottingham
36fb31718d Allow workflows within workflows. 2019-01-18 21:00:11 -05:00
AlanCoding
defd9fbb9f fix python3 flake8 errors 2019-01-02 11:00:25 -05:00
Alan Rominger
fffcbd2fb0 Merge pull request #614 from john-westcott-iv/523-foreground-color
#523 Changed foreground color to default, not black
2018-09-17 10:25:21 -04:00
Alan Rominger
6a528b3144 Merge pull request #613 from AlanCoding/umlat
Make text unicode before format
2018-09-14 13:41:36 -04:00
John Westcott IV
42c06f27f7 Merge pull request #511 from pilou-/dont_fail_when_prevent_match
Don't fail when 'prevent' switch match an asset
2018-09-14 13:05:32 -04:00
John Westcott IV
58601be632 #523 Changed foreground color to default, not black 2018-09-14 13:01:50 -04:00
AlanCoding
98cec846d0 make text unicode before format 2018-09-13 11:09:01 -04:00
Alan Rominger
9a22336649 Merge pull request #559 from john-westcott-iv/558-send-role-issue
#558 Fixed issue where roles were not properly identified
2018-07-23 10:45:59 -04:00
John Westcott IV
2753819007 #566 Fixed stack trace when exporting a workflow
If a Workflow had a node whose job template was removed from under it you would get a stack trace. This commit fixes that issue. Now, a message will be displayed:

tower-cli receive --tower-host http://localhost:8081 --workflow "Deleted Node Template"

Error: Workflow export exception: workflow Deleted Node Template has a node whose job template has been deleted
2018-07-05 12:49:20 -04:00
John Westcott IV
0bad8eebdf #558 Fixed issue where roles were not properly identified 2018-06-21 09:11:40 -04:00
John Westcott IV
c863b92f37 #554 changing export process to not include nodes from a sourced resource 2018-06-20 12:33:03 -04:00
John Westcott IV
d43f8f602e Move prevent catch above the exclude catch.
This way, if something is listed as both prevent and exclude the prevent will take precedence. A user should have the same asset type in both but prevent has a higher impact over exclude so I would want that one to take precedence.
2018-06-03 11:48:48 -04:00
Pierre-Louis Bonicoli
24e202b505 send: allow to exclude specific asset type 2018-05-23 11:39:43 +02:00
John Westcott IV
636462b66b Modified send/receive to transfer labels 2018-05-15 09:23:07 -04:00
John Westcott IV
470254f5de Fixed bug where deleting an assigned field (i.e. clearing out a description) was failing. 2018-04-19 16:43:12 -04:00
John Westcott IV
b124362919 Moved users to top of the import order
This is because a user needs to be there first in order to assign role membership to an organization
2018-04-05 13:19:33 -04:00
John Westcott IV
7d0aeb4a80 Added roles to send/receive 2018-03-29 12:48:04 -04:00
John Westcott IV
31389c65c3 Fixed another flake8 issue 2018-03-22 10:10:43 -04:00
John Westcott IV
d9d9cea4d9 Fixed workflow node unified job template type issue 2018-03-21 16:55:36 -04:00
John Westcott IV
f4aa13afb2 Fixed issue where failure to create a workflow node would cause an unhandled exception 2018-03-21 16:10:27 -04:00
John Westcott IV
eede733fae Fixed stack trace when assets are missing identity fields 2018-03-20 13:35:21 -04:00
John Westcott IV
6a3896b642 If post_options came back as None, just return instead of trying to iterate over it 2018-03-16 10:25:58 -04:00
John Westcott IV
c97e3ac6b1 Multiple fixes
Fixed displaying name of credential when saying that its managed by Tower

Added schedule checking

Now looks at custom credential types trying to find required password and applies password rules to them
2018-03-16 09:05:44 -04:00
John Westcott IV
0bd13b8c54 Additional Fixes for PR
Resolved SCM credentials for projects

Export and import extra_credentials in job_templates

Resolve credentials for inventory source

Now checks notification templates before asset import
2018-03-15 09:24:31 -04:00
John Westcott IV
090da3fd3c Send/Receive feature PR
Added dependencies and related to POSSIBLE_TYPES

They are needed for the import functionality

i before e except after c

Fixed typo in receive

Added receive option

Changed classname from Destroyer to Cleaner

Added empty command

Added required=False to scm-type field.

This field is not required by the API to create a project

Removed items from export if managed_by_tower = True

Added credential_type to dependencies for a credential

This allows resoluation of a credential_type when importing a credential

Added send command

Missing __init__.py file

Added type parameter to cleaner

Send and Receive now can do json or yaml

Removed possible types, adding its items into resource objects

Changed how assets are specified for export

Added exception if nothing was passed in to process

Added all option to cleaner method

Fixed issue where properties added in the source were not caught as needed to be updated

Added send/recieve/empty docs

Updated help text for empty

Move removeEncryptedValues to common

Added deepclone of asset when determining if asset needs update

This fixed an issue when removing items in the asset that were later referenced

Fixed some issues when importing credentials

Added workflow nodes import/export

Initial commit of inventory groups/hosts/sources and fix for vault_creds in job_template

Updated API to strip off /api/vX if passed in as url

This allows you send URLs retreived from the API back into TowerCLI

Caught additional exception

If already parsed Java is passed in you could get a TypeError exception which was not caught.

Added notification types

Added workflow name to error message when extracting nodes

When this condition occurs the message is displayed but in a receive no details are present as to what workflow had the error

Added all_pages when requesting workflow_nodes

Allowed for multiple tokens to be saved in ~/.tower_cli_token.json

Added debug log if asset does not have POST options

Removed unused import and debug message

If an object does not have POST options, just return

Changed how errors are logged

Added project updates if asset was created or updated

Removed local_path from SCM based projects

Changed removal of encrypted values from asset to exported_asset

Added workflow inventory and credential resolution

Added inventory group import/export

Added additional credential types for export/import

Added options for passwords for new items

Variablized workdlow node types

Fixed workflow comparison

Spell checking

All post PR fixes for send/receive

Modified print statements for python3

Wrapped TowerCLI class in try

This should give us a better error when performing exports

Don't get source project if its None

Fixed user passwords

Moved projects before inventory

An inventory with a source from a project requires projects to be created first

Added inventory source_script resolution

Another change for comparing workflow nodes

Revert "Merge remote-tracking branch 'upstream/master'"

This reverts commit d8b0d2dbff2713a86aee4c7ca901d789b6e1d470, reversing
changes made to 87ea5d2c6118f797dd908404974e790df8e4059a.

Fixed unintended injection of documentation

Added todo

Removed comments for pull request

Removed commants on dropping format

Fixed bad merge

Updated for flake8

Added all_pages to lists

Better handeling of extra_vars

Multiple changes

Made empty take params like receive

Output of send and empty are now ansible-ish

Changed function name to python standards

Extracted 'work' into method for calling programatically

Fixed missing :

Fixed newline at end of file causing flake8 failure

removed closing #'s

Changed from passing on TypeError to continuing if not a string

Added min_value and max_value to list of known types

Changed from .prefix to .get_prefix()

Moved out touchup_extra_vars so that it applies to all asset_types

Fixed issue where tox was sending back a json_token of 'invalid' causing issues with the dict

Added missing POST endpoint

Use six for string compare
2018-03-14 13:52:04 -04:00