mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 20:30:46 -03:30
Merge pull request #177 from mabashian/7384-scm-src-vars
Fixed scm inv source source vars
This commit is contained in:
commit
e4360b9870
@ -309,7 +309,8 @@ export default ['$state', '$stateParams', '$scope', 'SourcesFormDefinition',
|
||||
};
|
||||
|
||||
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;
|
||||
if ($scope.source.value === 'scm') {
|
||||
params.update_on_project_update = $scope.update_on_project_update;
|
||||
|
||||
@ -347,7 +347,8 @@ export default ['$state', '$stateParams', '$scope', 'ParseVariableString',
|
||||
};
|
||||
|
||||
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;
|
||||
if ($scope.source.value === 'scm') {
|
||||
params.update_on_project_update = $scope.update_on_project_update;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user