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:
parent
51f44b6f6a
commit
8ed1824ae2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user