Commit 9a3857d0 authored by Steven Jones's avatar Steven Jones

Issue #1454316 by Steven Jones: Fixed Provision recurses infinitely on reading in context.

parent 322cf0b2
...@@ -90,7 +90,7 @@ function provision_context_factory($name, $allow_creation = TRUE) { ...@@ -90,7 +90,7 @@ function provision_context_factory($name, $allow_creation = TRUE) {
$record = provision_sitealias_get_record($name); $record = provision_sitealias_get_record($name);
if (!$allow_creation && empty($record)) { if (!$allow_creation && empty($record)) {
drush_log(dt('Could not find provision alias named: @name' , array('@name' => $name)), 'failed'); drush_set_error('PROVISION_MISSING_CONTEXT', dt('Could not find provision alias named: @name' , array('@name' => $name)));
return NULL; return NULL;
} }
$options = array_merge(drush_get_context('stdin'), drush_get_context('options'), drush_get_context('cli')); $options = array_merge(drush_get_context('stdin'), drush_get_context('options'), drush_get_context('cli'));
......
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