mirror of
https://github.com/ansible/awx.git
synced 2026-08-01 18:39:54 -02:30
In progress: Adding GCE to inventory source.
This commit is contained in:
@@ -47,7 +47,7 @@ angular.module('SourceFormDefinition', [])
|
||||
source_regions: {
|
||||
label: 'Regions',
|
||||
type: 'text',
|
||||
ngShow: "source && (source.value == 'rax' || source.value == 'ec2')",
|
||||
ngShow: "source && (source.value == 'rax' || source.value == 'ec2' || source.value == 'gce')",
|
||||
addRequired: false,
|
||||
editRequired: false,
|
||||
awMultiselect: 'source_region_choices',
|
||||
@@ -155,4 +155,4 @@ angular.module('SourceFormDefinition', [])
|
||||
|
||||
related: { }
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1027,6 +1027,15 @@ function($compile, SchedulerInit, Rest, Wait, SetSchedulesInnerDialogSize, Sched
|
||||
callback: 'choicesReadyGroup'
|
||||
});
|
||||
|
||||
GetChoices({
|
||||
scope: sources_scope,
|
||||
url: GetBasePath('inventory_sources'),
|
||||
field: 'source_regions',
|
||||
variable: 'gce_regions',
|
||||
choice_name: 'gce_region_choices',
|
||||
callback: 'choicesReadyGroup'
|
||||
});
|
||||
|
||||
Wait('start');
|
||||
|
||||
if (parent_scope.removeAddTreeRefreshed) {
|
||||
@@ -1864,4 +1873,4 @@ function($compile, SchedulerInit, Rest, Wait, SetSchedulesInnerDialogSize, Sched
|
||||
|
||||
};
|
||||
}
|
||||
]);
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user