Commit 70fb1e13 authored by helmo's avatar helmo Committed by helmo

Issue #2828505 by helmo: New option provision_verify_platforms_before_migrate

parent 6861a0aa
......@@ -80,7 +80,7 @@ function drush_provision_drupal_provision_migrate($platform, $new_name = NULL) {
// If the site is migrated between platforms and not just renamed,
// we should update the info collected about source and target platform first.
// Note that we have to exclude Hostmaster platform from this extra verify.
if (!provision_is_hostmaster_site()) {
if (!provision_is_hostmaster_site() && drush_get_option('provision_verify_platforms_before_migrate', TRUE)) {
if (!is_null(d($platform)->name) && (d($platform)->name != d()->platform->name)) {
provision_backend_invoke('@hostmaster', 'hosting-task', array(d()->platform->name, 'verify'), array('force' => TRUE));
sleep(5); // A small trick to avoid high load and race conditions.
......
......@@ -7,6 +7,16 @@
* @see drush_command_invoke_all()
*/
/**
* Possible variables to set in local.drushrc.php or another drushrc location Drush supports.
*
* usage:
* $options['provision_backup_suffix'] = '.tar.bz2';
*
* provision_verify_platforms_before_migrate - When migrating many sites turning this off can save time, default TRUE.
* provision_backup_suffix - Method to set the compression used for backups... e.g. '.tar.bz2' or '.tar.', defaults to '.tar.gz'.
*
*/
/**
* Implements hook_drush_load(). Deprecated. Removed in Drush 7.x.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment