Closed (fixed)
Project:
Hosting
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Feb 2018 at 21:45 UTC
Updated:
13 Apr 2018 at 18:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tuchoComment #3
tuchoI uploaded a patch that verifies the site version using drush core-status and generates the correct cron URL for the detected Drupal version.
Comment #4
helmo commentedThanks,
Could we simplify this with
Comment #5
tuchoHi @helmo!
Thanks for your review.
I have tried using drush_drupal_major_version before using a direct call to drush core-status, but it always returns the version of the Hostmaster (D7).
I think, there may be some cache on this function that get always the version od the Hostmaster?
The code I run was:
And I get always 7, even for a D8 site.
Comment #6
helmo commentedI'd call that a bug in Drush. But in their defense, the function comment says "version number of the current Drupal installation," but then the (undocumented) $drupal_root is a bit misleading.
So it works as long as your not bootstrapped into the hostmaster site already. ( we are successfully using it in files like platform/provision_drupal.drush.inc)
The patch form #3 looks OK, it's on my dev server now for more testing.
Comment #8
helmo commentedmerged