mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
AC-613 Change rackspace to rax for inventory source field value.
This commit is contained in:
parent
902c7c2d72
commit
f254f8bc92
@ -816,7 +816,7 @@ class RunInventoryUpdate(BaseTask):
|
||||
args.extend(['--enabled-var', 'ec2_state'])
|
||||
args.extend(['--enabled-value', 'running'])
|
||||
#args.extend(['--instance-id', 'ec2_id'])
|
||||
elif inventory_source.source in == 'rax':
|
||||
elif inventory_source.source == 'rax':
|
||||
rax_path = self.get_path_to('..', 'plugins', 'inventory', 'rax.py')
|
||||
args.append(rax_path)
|
||||
args.extend(['--enabled-var', 'rax_status'])
|
||||
|
||||
@ -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',
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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'
|
||||
|
||||
@ -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'
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user