awx 15.0.0
towerlib 3.4.1
python 3.8
I have a job template that needs multiple credentials. I can fetch the credentials with tower.get_credentials_by_name() and find the job template with tower.get_job_template_by_name().
JobTemplate.launch() takes a credential parameter. I have tried passing a list of the found credentials, and also their IDs (the docs don't say which is required), but neither succeeds.
job_template = tower.get_job_template_by_name(template_name)
extra_vars = {}
creds = [12,8] # (IDs fetched from get_credentials_by_name()
job = job_template.launch(extra_vars=extra_vars, credential=creds)
{"written_at": "2020-11-03T16:20:49.335Z", "written_ts": 1604420449335948000, "msg": "Unknown entity type None", "type": "log", "logger": "jobs", "thread": "Dummy-3", "level": "ERROR", "module": "job", "line_no": 75}
The error appears to be related to something internal to towerlib checking a type variable that I don't set.
awx 15.0.0
towerlib 3.4.1
python 3.8
I have a job template that needs multiple credentials. I can fetch the credentials with tower.get_credentials_by_name() and find the job template with tower.get_job_template_by_name().
JobTemplate.launch() takes a credential parameter. I have tried passing a list of the found credentials, and also their IDs (the docs don't say which is required), but neither succeeds.
The error appears to be related to something internal to towerlib checking a type variable that I don't set.