mountPoint is only set for 'mountpoint' (unmanaged)
When restoring, mountPoint field is expected for managed mount points
This commit is contained in:
+1
-2
@@ -2063,13 +2063,12 @@ async function importApp(app, data, auditSource) {
|
||||
// TODO: make this smarter to do a read-only test and check if the file exists in the storage backend
|
||||
if (backupConfig) {
|
||||
if (mounts.isManagedProvider(backupConfig.provider)) {
|
||||
backupConfig.mountPoint = `/mnt/appimport-${app.id}`;
|
||||
error = mounts.validateMountOptions(backupConfig.provider, backupConfig.mountOptions);
|
||||
if (error) throw error;
|
||||
|
||||
const mountObject = { // keep this in sync with the import code in apptask
|
||||
name: `appimport-${app.id}`,
|
||||
hostPath: backupConfig.mountPoint,
|
||||
hostPath: `/mnt/appimport-${app.id}`,
|
||||
mountType: backupConfig.provider,
|
||||
mountOptions: backupConfig.mountOptions
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user