mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 10:27:37 -02:30
Merge pull request #177 from mabashian/7384-scm-src-vars
Fixed scm inv source source vars
This commit is contained in:
@@ -309,7 +309,8 @@ export default ['$state', '$stateParams', '$scope', 'SourcesFormDefinition',
|
|||||||
};
|
};
|
||||||
|
|
||||||
if ($scope.source) {
|
if ($scope.source) {
|
||||||
params.source_vars = $scope[$scope.source.value + '_variables'] === '---' || $scope[$scope.source.value + '_variables'] === '{}' ? null : $scope[$scope.source.value + '_variables'];
|
let source_vars = $scope.source.value === 'scm' ? $scope.custom_variables : $scope[$scope.source.value + '_variables'];
|
||||||
|
params.source_vars = source_vars === '---' || source_vars === '{}' ? null : source_vars;
|
||||||
params.source = $scope.source.value;
|
params.source = $scope.source.value;
|
||||||
if ($scope.source.value === 'scm') {
|
if ($scope.source.value === 'scm') {
|
||||||
params.update_on_project_update = $scope.update_on_project_update;
|
params.update_on_project_update = $scope.update_on_project_update;
|
||||||
|
|||||||
@@ -347,7 +347,8 @@ export default ['$state', '$stateParams', '$scope', 'ParseVariableString',
|
|||||||
};
|
};
|
||||||
|
|
||||||
if ($scope.source) {
|
if ($scope.source) {
|
||||||
params.source_vars = $scope[$scope.source.value + '_variables'] === '---' || $scope[$scope.source.value + '_variables'] === '{}' ? null : $scope[$scope.source.value + '_variables'];
|
let source_vars = $scope.source.value === 'scm' ? $scope.custom_variables : $scope[$scope.source.value + '_variables'];
|
||||||
|
params.source_vars = source_vars === '---' || source_vars === '{}' ? null : source_vars;
|
||||||
params.source = $scope.source.value;
|
params.source = $scope.source.value;
|
||||||
if ($scope.source.value === 'scm') {
|
if ($scope.source.value === 'scm') {
|
||||||
params.update_on_project_update = $scope.update_on_project_update;
|
params.update_on_project_update = $scope.update_on_project_update;
|
||||||
|
|||||||
Reference in New Issue
Block a user