Commit 2fcda499 authored by anarcat's avatar anarcat

Revert "1250068 - try to fix drush 4.5 support"

This reverts commit 6537cb81.
parent 6537cb81
......@@ -40,7 +40,7 @@ function drush_provision_drupal_provision_clone($new_uri, $platform = null) {
$options = d()->options;
$options['uri'] = ltrim($new_uri, '@');
$options['#name'] = $new_uri;
$options['name'] = $new_uri;
$options['platform'] = (isset($platform)) ? $platform : $options['platform'];
$options['root'] = d($options['platform'])->root;
$options['aliases'] = array();
......
......@@ -73,7 +73,7 @@ function drush_provision_drupal_provision_migrate($platform, $new_uri = null) {
if (!is_null($new_uri) && ($new_uri != d()->uri)) {
$options = d()->options;
$options['uri'] = ltrim($new_uri, '@');
$options['#name'] = $new_uri;
$options['name'] = $new_uri;
}
$options['platform'] = $platform;
$options['root'] = d($platform)->root;
......
......@@ -57,7 +57,7 @@ include_once('provision.inc');
* @see provision_load_critical()
*/
function provision_drush_init() {
d(drush_get_option('#name', '@self', 'alias'), TRUE);
d(drush_get_option('name', '@self', 'alias'), TRUE);
$load = sys_getloadavg();
if (provision_load_critical($load)) {
drush_set_error('PROVISION_OVERLOAD', dt("load on system too heavy (@load), aborting", array('@load' => join(" ", $load))));
......
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