1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

update multi cred and prompt on launch modals to show net credential kinds

This commit is contained in:
John Mitchell 2017-06-16 14:57:40 -04:00
parent e1fadd0c8a
commit adfe4ef92f
2 changed files with 2 additions and 2 deletions

View File

@ -264,7 +264,7 @@ export default
$scope.credentialTypeOptions = [];
credentialTypeData.results.forEach((credentialType => {
credential_types[credentialType.id] = credentialType;
if(credentialType.kind.match(/^(machine|cloud|network|ssh)$/)) {
if(credentialType.kind.match(/^(machine|cloud|net|ssh)$/)) {
$scope.credentialTypeOptions.push({
name: credentialType.name,
value: credentialType.id

View File

@ -45,7 +45,7 @@ export default ['templateUrl', 'Rest', 'GetBasePath', 'generateList', '$compile'
credentialTypeData.results.forEach((credentialType => {
credential_types[credentialType.id] = credentialType;
if(credentialType.kind
.match(/^(machine|cloud|network|ssh)$/)) {
.match(/^(machine|cloud|net|ssh)$/)) {
scope.credentialTypeOptions.push({
name: credentialType.name,
value: credentialType.id