Fixup gcs backup storage configuration
This commit is contained in:
@@ -121,16 +121,10 @@ async function onSubmit() {
|
||||
data.noHardlinks = !providerConfig.value.useHardlinks;
|
||||
data.preserveAttributes = true;
|
||||
} else if (data.provider === 'gcs') {
|
||||
// TODO we should probably allow to change the config without reuploading a new .json
|
||||
if (providerConfig.value.gcsKeyContentJson) return;
|
||||
|
||||
data.bucket = providerConfig.value.bucket;
|
||||
data.prefix = providerConfig.value.prefix;
|
||||
data.projectId = providerConfig.value.gcsKeyContentJson.project_id;
|
||||
data.credentials = {
|
||||
client_email: providerConfig.value.gcsKeyContentJson.client_email,
|
||||
private_key: providerConfig.value.gcsKeyContentJson.private_key
|
||||
};
|
||||
data.projectId = providerConfig.value.projectId;
|
||||
data.credentials = providerConfig.value.credentials;
|
||||
}
|
||||
|
||||
const limits = {
|
||||
|
||||
Reference in New Issue
Block a user