Fix locations error on create
This commit is contained in:
parent
6148a3bb9b
commit
4e66ba078d
1 changed files with 6 additions and 13 deletions
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue