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

Limit the credential select options to ssh/cloud/network

This commit is contained in:
Michael Abashian 2017-06-06 14:32:43 -04:00
parent 51f44b6f6a
commit 8ed1824ae2

View File

@ -219,7 +219,7 @@ export default
$scope.credentialKindOptions = []; $scope.credentialKindOptions = [];
credentialTypeData.results.forEach((credentialType => { credentialTypeData.results.forEach((credentialType => {
credential_types[credentialType.id] = credentialType; credential_types[credentialType.id] = credentialType;
if($scope.ask_credential_on_launch || (!$scope.ask_credential_on_launch && credentialType.id !== 1)) { if(($scope.ask_credential_on_launch || (!$scope.ask_credential_on_launch && credentialType.id !== 1)) && credentialType.kind.match(/^(cloud|network|ssh)$/)) {
$scope.credentialKindOptions.push({ $scope.credentialKindOptions.push({
name: credentialType.name, name: credentialType.name,
value: credentialType.id value: credentialType.id