Fix an auto deployment bug causing a node to be ignored if it had no servers already attached to it

closes #919
This commit is contained in:
Dane Everitt 2018-02-17 15:51:28 -06:00
parent c8d0286ec4
commit 7562e501af
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
* `[rc.1]` — Fixes bug preventing modification of the default value for an Egg variable.
* `[rc.1]` — Fixed a bug that would occur when attempting to reset the daemon secret for a node.
* `[rc.1]` — Fix exception thrown when attempting to modify an existing database host.
* `[rc.1]` — Fix an auto deployment bug causing a node to be ignored if it had no servers already attached to it.
### Changed
* Changed logger to skip reporting stack-traces on PDO exceptions due to sensitive information being contained within.

View File

@ -180,6 +180,6 @@ class NodeRepository extends EloquentRepository implements NodeRepositoryInterfa
$instance->whereIn('nodes.location_id', $locations);
}
return $instance->cursor();
return $instance->groupBy('nodes.id')->cursor();
}
}