Skip to content

Commit

Permalink
Fixes #1797: checkDrupalVm:remote-host always fails. (#1814)
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash authored Jul 18, 2017
1 parent cf39f0a commit b2928aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drush/Command/BltDoctorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ protected function checkDrupalVm() {
else {
$this->logOutcome(__FUNCTION__ . ':alias', "drush.aliases.local exists your drush aliases file.", 'info');
$local_alias = $this->drushAliases[$local_alias_id];
if ($local_alias['remote-host'] != $this->drupalVmConfig['vagrant_hostname']) {
if ('vagrant' != $_SERVER['USER'] && $local_alias['remote-host'] != $this->drupalVmConfig['vagrant_hostname']) {
$this->logOutcome(__FUNCTION__ . ":remote-host", [
"remote-host for @$local_alias_id drush alias does not match vagrant_hostname for DrupalVM.",
" remote-host is set to {$local_alias['remote-host']} for @$local_alias_id",
Expand Down

0 comments on commit b2928aa

Please sign in to comment.