Skip to content

Commit e8a80c6

Browse files
committed
Fix allocation parsing bug.
1 parent 377fe92 commit e8a80c6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
66
## v0.6.0-pre.7 (Courageous Carniadactylus)
77
### Fixed
88
* `[pre.6]` — Addresses misconfigured console queue that was still sending data way to quickly thus causing the console to explode on some devices when large amounts of data were sent.
9+
* `[pre.6]` — Fixes bug in allocation parsing for a node that prevented adding new allocations.
910

1011
## v0.6.0-pre.6 (Courageous Carniadactylus)
1112
### Fixed

app/Repositories/NodeRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public function addAllocations($id, array $data)
203203
}
204204
}
205205

206-
DB::transaction(function () use ($parsed, $node, $data) {
206+
DB::transaction(function () use ($data, $node) {
207207
foreach (Network::parse(gethostbyname($data['allocation_ip'])) as $ip) {
208208
foreach ($data['allocation_ports'] as $port) {
209209
// Determine if this is a valid single port, or a valid port range.

0 commit comments

Comments
 (0)