Make it so that we take source_vars with the custom inventory script

when defining the inventory source.  Slight modification to the UI to
make that possible
This commit is contained in:
Matthew Jones
2014-10-14 15:38:42 -04:00
parent 8b8fb2403c
commit c43a7be99e
3 changed files with 9 additions and 5 deletions

View File

@@ -42,7 +42,7 @@ angular.module('SourceFormDefinition', [])
credential: {
label: 'Cloud Credential',
type: 'lookup',
ngShow: "source && source.value !== ''",
ngShow: "source && source.value !== '' && source.value !== 'custom'",
sourceModel: 'credential',
sourceField: 'name',
ngClick: 'lookUpCredential()',
@@ -65,7 +65,7 @@ angular.module('SourceFormDefinition', [])
},
source_vars: {
label: 'Source Variables',
ngShow: "source && (source.value == 'file' || source.value == 'ec2')",
ngShow: "source && (source.value == 'file' || source.value == 'ec2' || source.value == 'custom')",
type: 'textarea',
addRequired: false,
editRequird: false,