Skip to content

Commit

Permalink
Warning with host without configuration [#1583]
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Apr 18, 2018
1 parent 1e26eff commit 49c694b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
### Fixed
- Fixed that long http user name is not detected correctly [#1580]
- Fixed missing `var/sessions` in Symfony 4 shared_dirs

- Fixed warning with host without configuration [#1583]

## v6.1.0
[v6.0.5...v6.1.0](https://github.com/deployphp/deployer/compare/v6.0.5...v6.1.0)
Expand Down Expand Up @@ -369,6 +369,7 @@
- Fixed remove of shared dir on first deploy


[#1583]: https://github.com/deployphp/deployer/issues/1583]
[#1580]: https://github.com/deployphp/deployer/pull/1580
[#1575]: https://github.com/deployphp/deployer/pull/1575
[#1559]: https://github.com/deployphp/deployer/pull/1559
Expand Down
6 changes: 4 additions & 2 deletions src/Host/FileLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ public function load($file)
}
}

foreach ($config as $name => $value) {
$host->set($name, $value);
if (is_array($config)) {
foreach ($config as $name => $value) {
$host->set($name, $value);
}
}

$this->hosts[$hostname] = $host;
Expand Down

0 comments on commit 49c694b

Please sign in to comment.