Skip to content

Commit 153fa37

Browse files
committed
fix system execute
1 parent a6b2902 commit 153fa37

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Service/System.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function certbot(Model\CertbotRequest $request): Message
4444
throw new StatusCode\InternalServerErrorException('Could not execute certbot', previous: $e);
4545
}
4646

47-
return $this->newMessage('Obtained certificate successfully', null, $output);
47+
return $this->newMessage('Obtained certificate successfully', $output);
4848
}
4949

5050
public function images(): DockerImages
@@ -71,7 +71,7 @@ public function login(Model\DockerLogin $login): Message
7171
throw new StatusCode\InternalServerErrorException('Could not execute login', previous: $e);
7272
}
7373

74-
return $this->newMessage('Login successfully', null, $output);
74+
return $this->newMessage('Login successfully', $output);
7575
}
7676

7777
public function ps(): Model\DockerProcesses
@@ -106,12 +106,11 @@ public function stats(): Model\DockerStatistics
106106
return $collection;
107107
}
108108

109-
private function newMessage(string $message, string $id, ?string $output = null): Model\Message
109+
private function newMessage(string $message, ?string $output = null): Model\Message
110110
{
111111
$return = new Model\Message();
112112
$return->setSuccess(true);
113113
$return->setMessage($message);
114-
$return->setId($id);
115114
$return->setOutput($output);
116115
return $return;
117116
}

0 commit comments

Comments
 (0)