mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 17:37:37 -02:30
Fix vault credential update server error
This commit is contained in:
@@ -91,6 +91,11 @@ function CredentialEdit({ credential }) {
|
|||||||
modifiedData.user = me.id;
|
modifiedData.user = me.id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (credential.kind === 'vault' && !credential.inputs?.vault_id) {
|
||||||
|
delete modifiedData.inputs.vault_id;
|
||||||
|
}
|
||||||
|
|
||||||
const [{ data }] = await Promise.all([
|
const [{ data }] = await Promise.all([
|
||||||
CredentialsAPI.update(credId, modifiedData),
|
CredentialsAPI.update(credId, modifiedData),
|
||||||
...destroyInputSources(),
|
...destroyInputSources(),
|
||||||
@@ -100,7 +105,7 @@ function CredentialEdit({ credential }) {
|
|||||||
|
|
||||||
return data;
|
return data;
|
||||||
},
|
},
|
||||||
[me, credId]
|
[me, credId, credential]
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user