Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm trying to use provision-sync to sync from a normal drush alias, and it always fails.
Figured out it's because it uses d($source)->uri to detemine the domain name for the sites/domain/ path.
Guess what? d('@normal.drush.alias')->uri returns NULL:
To reproduce, create a simple drush alias and print d('alias')->uri
aegir@devshop:~$ drush php
Psy Shell v0.8.14 (PHP 7.0.32-0ubuntu0.16.04.1 — cli) by Justin Hileman
>>> d('@hostmaster.or.other.site')->uri
=> hostmaster.domain.com
>>> d('@custom.drush.alias')->uri
=> null
Patch and branch coming soon.
Comment | File | Size | Author |
---|---|---|---|
#3 | 3012687-d-get-alias-props.patch | 1.21 KB | Jon Pugh |
Comments
Comment #2
Jon PughComment #3
Jon PughFixed comment, check for prop before returning.
Comment #6
Jon Pugh