Refactor Docker creation in Destination Show.php
This commit is contained in:
parent
8b7e1e4169
commit
b25f83e096
1 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ public function add($name)
|
|||
$this->dispatch('error', 'Network already added to this server.');
|
||||
return;
|
||||
} else {
|
||||
$docker = SwarmDocker::create([
|
||||
SwarmDocker::create([
|
||||
'name' => $this->server->name . "-" . $name,
|
||||
'network' => $this->name,
|
||||
'server_id' => $this->server->id,
|
||||
|
|
@ -38,7 +38,7 @@ public function add($name)
|
|||
$this->dispatch('error', 'Network already added to this server.');
|
||||
return;
|
||||
} else {
|
||||
$docker = StandaloneDocker::create([
|
||||
StandaloneDocker::create([
|
||||
'name' => $this->server->name . "-" . $name,
|
||||
'network' => $name,
|
||||
'server_id' => $this->server->id,
|
||||
|
|
|
|||
Loading…
Reference in a new issue