From 3c9887dc45557cb8de50d3ae6cdf85e0ca1994df Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Tue, 28 Apr 2015 11:21:46 -0400 Subject: [PATCH] added source type population for gce and azure on edit --- awx/ui/static/js/helpers/Groups.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/awx/ui/static/js/helpers/Groups.js b/awx/ui/static/js/helpers/Groups.js index a722e38f8d..1c4e997d99 100644 --- a/awx/ui/static/js/helpers/Groups.js +++ b/awx/ui/static/js/helpers/Groups.js @@ -1042,8 +1042,19 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', listGenerator.name sources_scope.sourceChange(); //set defaults that rely on source value if (data.source_regions) { - if (data.source === 'ec2' || data.source === 'rax') { - set = (data.source === 'ec2') ? sources_scope.ec2_regions : sources_scope.rax_regions; + if (data.source === 'ec2' || + data.source === 'rax' || + data.source === 'gce' || + data.source === 'azure') { + if (data.source === 'ec2') { + set = sources_scope.ec2_regions; + } else if (data.source === 'rax') { + set = sources_scope.rax_regions; + } else if (data.source === 'gce') { + set = sources_scope.gce_regions; + } else if (data.source === 'azure') { + set = sources_scope.azure_regions; + } opts = []; list = data.source_regions.split(','); for (i = 0; i < list.length; i++) {