Skip to content

Commit

Permalink
Filter output upon stage argument only when defined for host fixes de…
Browse files Browse the repository at this point in the history
  • Loading branch information
dnaber-de committed Apr 7, 2020
1 parent ae6f969 commit a35e0d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- Fixed check_remote task revision resolution [#1994]
- Fixed backward compatibility of bin/console for symfony4 recipe
- Keep consistency with executable naming in lock recipe
- Unexpected exception in config:* tasks when no stage is defined for host [#1909] [#1909] [#1909]


## v6.7.3
Expand Down Expand Up @@ -566,6 +567,7 @@
[#1989]: https://github.com/deployphp/deployer/issues/1989
[#1971]: https://github.com/deployphp/deployer/pull/1971
[#1969]: https://github.com/deployphp/deployer/issues/1969
[#1909]: https://github.com/deployphp/deployer/issues/1909
[#1899]: https://github.com/deployphp/deployer/pull/1899
[#1893]: https://github.com/deployphp/deployer/pull/1893
[#1881]: https://github.com/deployphp/deployer/pull/1881
Expand Down
2 changes: 1 addition & 1 deletion recipe/config/current.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
$selectedStage = Deployer::get()->getInput()->getArgument('stage');

on(Deployer::get()->hosts, function (Host $host) use (&$rows, $selectedStage) {
if ($host->get('stage') !== $selectedStage) {
if ($selectedStage && $host->get('stage', false) !== $selectedStage) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion recipe/config/hosts.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
$selectedStage = Deployer::get()->getInput()->getArgument('stage');

foreach (Deployer::get()->hosts as $host) {
if ($host->get('stage') !== $selectedStage) {
if ($selectedStage && $host->get('stage', false) !== $selectedStage) {
continue;
}

Expand Down

0 comments on commit a35e0d4

Please sign in to comment.