mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 14:11:24 -03:30
Limit the credential select options to ssh/cloud/network
This commit is contained in:
parent
51f44b6f6a
commit
8ed1824ae2
@ -219,7 +219,7 @@ export default
|
||||
$scope.credentialKindOptions = [];
|
||||
credentialTypeData.results.forEach((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({
|
||||
name: credentialType.name,
|
||||
value: credentialType.id
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user