Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

[WIP] Process host/group/inventory variables before request #612

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AlanCoding
Copy link
Member

Resolves #564

This is more ambitious of a fix than I wanted this to be.

$ tower-cli host create --inventory=3 -n host1 --variables "ansible_python_interpreter=/usr/bin/python26" -v
*** DETAILS: Checking for an existing record. *********************************
GET http://localhost:8013/api/v2/hosts/
Params: [('inventory', 3), ('name', u'host1')]

*** DETAILS: Writing the record. **********************************************
POST http://localhost:8013/api/v2/hosts/
Data: {'variables': '{"ansible_python_interpreter": "/usr/bin/python26"}', 'inventory': 3, 'name': u'host1'}

Resource changed.
== ===== ========= ======= 
id name  inventory enabled 
== ===== ========= ======= 
15 host1         3    true
== ===== ========= ======= 

@AlanCoding AlanCoding force-pushed the structured_input branch 2 times, most recently from d69fed4 to e910e3a Compare January 28, 2019 12:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deny parsing YAML variables if not a dict
1 participant