Fix locations error on create

This commit is contained in:
Dane Everitt 2017-02-16 14:56:26 -05:00
parent 6148a3bb9b
commit 4e66ba078d
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -78,18 +78,11 @@ class NodesController extends Controller
try { try {
$repo = new NodeRepository; $repo = new NodeRepository;
$node = $repo->create($request->only([ $node = $repo->create($request->only([
'name', 'name', 'location_id', 'public',
'location', 'fqdn', 'scheme', 'memory',
'public', 'memory_overallocate', 'disk',
'fqdn', 'disk_overallocate', 'daemonBase',
'scheme', 'daemonSFTP', 'daemonListen',
'memory',
'memory_overallocate',
'disk',
'disk_overallocate',
'daemonBase',
'daemonSFTP',
'daemonListen',
])); ]));
Alert::success('Successfully created new node that can be configured automatically on your remote machine by visiting the configuration tab. <strong>Before you can add any servers you need to first assign some IP addresses and ports.</strong>')->flash(); Alert::success('Successfully created new node that can be configured automatically on your remote machine by visiting the configuration tab. <strong>Before you can add any servers you need to first assign some IP addresses and ports.</strong>')->flash();
@ -129,7 +122,7 @@ class NodesController extends Controller
try { try {
$node = new NodeRepository; $node = new NodeRepository;
$node->update($id, $request->only([ $node->update($id, $request->only([
'name', 'location', 'public', 'name', 'location_id', 'public',
'fqdn', 'scheme', 'memory', 'fqdn', 'scheme', 'memory',
'memory_overallocate', 'disk', 'memory_overallocate', 'disk',
'disk_overallocate', 'upload_size', 'disk_overallocate', 'upload_size',