@@ -33,11 +33,6 @@ const fetchCredentials = async (credential) => {
33
33
results : [ scmCredentialType ] ,
34
34
} ,
35
35
} ,
36
- {
37
- data : {
38
- results : [ azurermCredentialType ] ,
39
- } ,
40
- } ,
41
36
{
42
37
data : {
43
38
results : [ insightsCredentialType ] ,
@@ -50,14 +45,13 @@ const fetchCredentials = async (credential) => {
50
45
} ,
51
46
] = await Promise . all ( [
52
47
CredentialTypesAPI . read ( { kind : 'scm' } ) ,
53
- CredentialTypesAPI . read ( { namespace : 'azure_rm' } ) ,
54
48
CredentialTypesAPI . read ( { name : 'Insights' } ) ,
55
49
CredentialTypesAPI . read ( { kind : 'cryptography' } ) ,
56
50
] ) ;
57
51
58
52
if ( ! credential ) {
59
53
return {
60
- scm : { typeIds : [ scmCredentialType . id , azurermCredentialType . id ] } ,
54
+ scm : { typeId : scmCredentialType . id } ,
61
55
insights : { typeId : insightsCredentialType . id } ,
62
56
cryptography : { typeId : cryptographyCredentialType . id } ,
63
57
} ;
@@ -66,12 +60,8 @@ const fetchCredentials = async (credential) => {
66
60
const { credential_type_id } = credential ;
67
61
return {
68
62
scm : {
69
- typeIds : [ scmCredentialType . id , azurermCredentialType . id ] ,
70
- value :
71
- credential_type_id === scmCredentialType . id ||
72
- credential_type_id === azurermCredentialType . id
73
- ? credential
74
- : null ,
63
+ typeId : scmCredentialType . id ,
64
+ value : credential_type_id === scmCredentialType . id ? credential : null ,
75
65
} ,
76
66
insights : {
77
67
typeId : insightsCredentialType . id ,
@@ -377,13 +367,13 @@ function ProjectForm({ project, submitError, ...props }) {
377
367
} ) ;
378
368
const [ scmTypeOptions , setScmTypeOptions ] = useState ( null ) ;
379
369
const [ credentials , setCredentials ] = useState ( {
380
- scm : { typeIds : null , value : null } ,
370
+ scm : { typeId : null , value : null } ,
381
371
insights : { typeId : null , value : null } ,
382
372
cryptography : { typeId : null , value : null } ,
383
373
} ) ;
384
374
const [ signatureValidationCredentials , setSignatureValidationCredentials ] =
385
375
useState ( {
386
- scm : { typeIds : null , value : null } ,
376
+ scm : { typeId : null , value : null } ,
387
377
insights : { typeId : null , value : null } ,
388
378
cryptography : { typeId : null , value : null } ,
389
379
} ) ;
0 commit comments