caas: make migrate not send the restoreKey like upgrade

This commit is contained in:
Girish Ramakrishnan
2017-04-22 18:28:58 -07:00
parent 6cc708136e
commit 70042021aa

View File

@@ -869,13 +869,11 @@ function doMigrate(options, callback) {
progress.set(progress.MIGRATE, 10, 'Backing up for migration');
// initiate the migration in the background
backups.backupBoxAndApps({ userId: null, username: 'migrator' }, function (error, backupId) {
backups.backupBoxAndApps({ userId: null, username: 'migrator' }, function (error) {
if (error) return unlock(error);
debug('migrate: domain: %s size %s region %s', options.domain, options.size, options.region);
options.restoreKey = backupId + '.tar.gz.enc';
superagent
.post(config.apiServerOrigin() + '/api/v1/boxes/' + config.fqdn() + '/migrate')
.query({ token: config.token() })