summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Gervais2016-05-20 17:34:02 (GMT)
committerChristopher Gervais2016-05-20 17:34:02 (GMT)
commit3aff716537aff05ee8aa96c551b81980ca4b8b9f (patch)
tree2dca117d35464b6090a037ce173b04e94b263a47
parente9bb315181114dd89aa46496f449ac63f1ab0ac0 (diff)
Pass the new database server to the front-end.dev/2729279
-rw-r--r--migrate.hostmaster.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/migrate.hostmaster.inc b/migrate.hostmaster.inc
index c30cb85..521af51 100644
--- a/migrate.hostmaster.inc
+++ b/migrate.hostmaster.inc
@@ -82,9 +82,15 @@ function drush_provision_post_hostmaster_migrate($site, $platform) {
provision_backend_invoke(drush_get_option('site_name'), 'cache-clear', array('drush'));
// we pass the context names we generated to the task so we can enforce that the names
// stay the same.
- provision_backend_invoke(drush_get_option('site_name'), 'hosting-resume', array(), array(
+ $options = array(
'old_platform_name' => drush_get_option('old_platform'),
'new_platform_name' => drush_get_option('new_platform'),
- ));
+ );
+ // We pass the new database server to the front-end, to update the hostmaster
+ // site node.
+ if ($db_server = drush_get_option('new_db_server', FALSE)) {
+ $options['new_db_server'] = $db_server;
+ }
+ provision_backend_invoke(drush_get_option('site_name'), 'hosting-resume', array(), $options);
}