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 {
$repo = new NodeRepository;
$node = $repo->create($request->only([
'name',
'location',
'public',
'fqdn',
'scheme',
'memory',
'memory_overallocate',
'disk',
'disk_overallocate',
'daemonBase',
'daemonSFTP',
'daemonListen',
'name', 'location_id', 'public',
'fqdn', 'scheme', '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();
@ -129,7 +122,7 @@ class NodesController extends Controller
try {
$node = new NodeRepository;
$node->update($id, $request->only([
'name', 'location', 'public',
'name', 'location_id', 'public',
'fqdn', 'scheme', 'memory',
'memory_overallocate', 'disk',
'disk_overallocate', 'upload_size',