AC-613 Change rackspace to rax for inventory source field value.

This commit is contained in:
Chris Church
2013-11-16 16:48:27 -05:00
parent 902c7c2d72
commit f254f8bc92
6 changed files with 10 additions and 10 deletions

View File

@@ -126,7 +126,7 @@ angular.module('GroupFormDefinition', [])
label: 'Regions',
excludeModal: true,
type: 'text',
ngShow: "source.value == 'rackspace' || source.value == 'ec2'",
ngShow: "source.value == 'rax' || source.value == 'ec2'",
addRequired: false,
editRequired: false,
dataTitle: 'Source Regions',

View File

@@ -806,7 +806,7 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
LookUpInit({
url: GetBasePath('credentials') +
'?cloud=true&kind=' + [(scope.source.value == 'rackspace') ? 'rax' : 'aws'],
'?cloud=true&kind=' + [(scope.source.value == 'rax') ? 'rax' : 'aws'],
scope: scope,
form: form,
list: CredentialList,
@@ -1000,7 +1000,7 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', 'ListGenerator', '
}
LookUpInit({
url: GetBasePath('credentials') +
'?cloud=true&kind=' + [(scope.source.value == 'rackspace') ? 'rax' : 'aws'],
'?cloud=true&kind=' + [(scope.source.value == 'rax') ? 'rax' : 'aws'],
scope: scope,
form: form,
list: CredentialList,

View File

@@ -78,7 +78,7 @@ angular.module('HomeGroupListDefinition', [])
searchOptions: [
{ name: "ec2", value: "ec2" },
{ name: "none", value: "" },
{ name: "rackspace", value: "rackspace" }],
{ name: "rax", value: "rax" }],
sourceModel: 'inventory_source',
sourceField: 'source',
searchOnly: true
@@ -86,7 +86,7 @@ angular.module('HomeGroupListDefinition', [])
has_external_source: {
label: 'Has external source?',
searchType: 'in',
searchValue: 'ec2,rackspace',
searchValue: 'ec2,rax',
searchOnly: true,
sourceModel: 'inventory_source',
sourceField: 'source'

View File

@@ -71,7 +71,7 @@ angular.module('InventorySummaryDefinition', [])
searchOptions: [
{ name: "ec2", value: "ec2" },
{ name: "none", value: "" },
{ name: "rackspace", value: "rackspace" }],
{ name: "rax", value: "rax" }],
sourceModel: 'inventory_source',
sourceField: 'source',
searchOnly: true
@@ -79,7 +79,7 @@ angular.module('InventorySummaryDefinition', [])
has_external_source: {
label: 'Has external source?',
searchType: 'in',
searchValue: 'ec2,rackspace',
searchValue: 'ec2,rax',
searchOnly: true,
sourceModel: 'inventory_source',
sourceField: 'source'

View File

@@ -134,7 +134,7 @@ angular.module('InventorySyncStatusWidget', ['RestServices', 'Utilities'])
{ hdr: 'Error!', msg: 'Failed to get ' + url + '. GET status: ' + status });
});
url = GetBasePath('inventory_sources') + '?source__in=ec2,rackspace&page=1';
url = GetBasePath('inventory_sources') + '?source__in=ec2,rax&page=1';
Rest.setUrl(url);
Rest.get()
.success( function(data, status, headers, config) {
@@ -146,7 +146,7 @@ angular.module('InventorySyncStatusWidget', ['RestServices', 'Utilities'])
{ hdr: 'Error!', msg: 'Failed to get ' + url + '. GET status: ' + status });
});
url = GetBasePath('inventory_sources') + '?status=failed&source__in=ec2,rackspace&page=1';
url = GetBasePath('inventory_sources') + '?status=failed&source__in=ec2,rax&page=1';
Rest.setUrl(url);
Rest.get()
.success( function(data, status, headers, config) {