From 86c717bca38d1f1ed52829f26108bd06191b5fee Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Wed, 26 Nov 2014 13:18:19 -0500 Subject: [PATCH] Job submission changed the 'credential' to 'credential_id' on the POST to the job launch endpoint, per request from Matt --- awx/ui/static/js/helpers/CustomInventory.js | 2 +- awx/ui/static/js/helpers/JobSubmission.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/ui/static/js/helpers/CustomInventory.js b/awx/ui/static/js/helpers/CustomInventory.js index fa869559e1..93cd236e2b 100644 --- a/awx/ui/static/js/helpers/CustomInventory.js +++ b/awx/ui/static/js/helpers/CustomInventory.js @@ -84,7 +84,7 @@ angular.module('CreateCustomInventoryHelper', [ 'Utilities', 'RestServices', 'Sc CreateDialog({ id: 'custom-script-dialog', - title: 'Inventory Scripts', + title: 'Inventory Script', target: 'custom-script-dialog', scope: scope, buttons: buttons, diff --git a/awx/ui/static/js/helpers/JobSubmission.js b/awx/ui/static/js/helpers/JobSubmission.js index 98045da00f..f402e64ca2 100644 --- a/awx/ui/static/js/helpers/JobSubmission.js +++ b/awx/ui/static/js/helpers/JobSubmission.js @@ -45,7 +45,7 @@ angular.module('JobSubmissionHelper', [ 'RestServices', 'Utilities', 'Credential } delete(job_launch_data.extra_vars); if(!Empty(scope.credential)){ - job_launch_data.credential = scope.credential; + job_launch_data.credential_id = scope.credential; } Rest.setUrl(url); Rest.post(job_launch_data)