mountPoint is only set for 'mountpoint' (unmanaged)

When restoring, mountPoint field is expected for managed mount points
This commit is contained in:
Girish Ramakrishnan
2022-01-26 12:59:34 -08:00
parent 8b9d821905
commit a786fad3ee
6 changed files with 17 additions and 11 deletions
+1 -2
View File
@@ -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
};