remount does not need a backend hook
This commit is contained in:
@@ -16,8 +16,6 @@ exports = module.exports = {
|
||||
remove,
|
||||
removeDir,
|
||||
|
||||
remount,
|
||||
|
||||
testConfig,
|
||||
removePrivateFields,
|
||||
injectPrivateFields
|
||||
@@ -254,14 +252,6 @@ function validateBackupTarget(folder) {
|
||||
return null;
|
||||
}
|
||||
|
||||
async function remount(apiConfig) {
|
||||
assert.strictEqual(typeof apiConfig, 'object');
|
||||
|
||||
if (apiConfig.provider === PROVIDER_FILESYSTEM || apiConfig.provider === PROVIDER_MOUNTPOINT) return;
|
||||
|
||||
await mounts.remount(mounts.mountObjectFromBackupConfig(apiConfig));
|
||||
}
|
||||
|
||||
async function testConfig(apiConfig) {
|
||||
assert.strictEqual(typeof apiConfig, 'object');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user