Hi I'm experiencing some small issues when running drush commands (multiple warnings displayed), this is mostly due to the fact that the conditions and the reactions of each context are wiped using a hook_context_load_alter() in my site.
My guess is that the hook_init() the module implements arrives too early and when the execute is called, the conditions array is empty.
A possible quickfix would be to not call the condition plugin when drupal_is_cli()., patch following.

Comments

jsacksick’s picture

Status: Active » Needs review
StatusFileSize
new549 bytes

  • Commit cd106f2 on 7.x-1.x authored by jsacksick, committed by iamEAP:
    Ensuring conditions aren't executed in a CLI context. [#2228101]
    
iamEAP’s picture

Status: Needs review » Fixed

(Whoa! Issue update on patch commit. Neat!)

Makes sense and patch looks good. Committed (see above). Thanks for your contribution, @jsacksick!

Now you've got me thinking about what a context_drush module would look like...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.