diff --git a/CHANGELOG.md b/CHANGELOG.md index 1283a19e8..9059e0821 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/app/Repositories/Eloquent/NodeRepository.php b/app/Repositories/Eloquent/NodeRepository.php index 8e0b44ca7..6894ad516 100644 --- a/app/Repositories/Eloquent/NodeRepository.php +++ b/app/Repositories/Eloquent/NodeRepository.php @@ -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(); } }