mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
address review
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
51d55760fa
commit
655eada45c
1 changed files with 7 additions and 3 deletions
|
|
@ -125,7 +125,7 @@ class DockerActionManager
|
||||||
$url = $this->BuildApiUrl(sprintf('containers/%s', urlencode($container->GetIdentifier())));
|
$url = $this->BuildApiUrl(sprintf('containers/%s', urlencode($container->GetIdentifier())));
|
||||||
try {
|
try {
|
||||||
$this->guzzleClient->delete($url);
|
$this->guzzleClient->delete($url);
|
||||||
} catch (ClientException $e) {
|
} catch (\GuzzleHttp\Exception\RequestException $e) {
|
||||||
if ($e->getCode() !== 404) {
|
if ($e->getCode() !== 404) {
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
|
|
@ -430,7 +430,7 @@ class DockerActionManager
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
} catch (ClientException $e) {}
|
} catch (\GuzzleHttp\Exception\RequestException $e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function ConnectContainerIdToNetwork(string $id)
|
private function ConnectContainerIdToNetwork(string $id)
|
||||||
|
|
@ -488,7 +488,11 @@ class DockerActionManager
|
||||||
$url = $this->BuildApiUrl(sprintf('containers/%s/stop?t=%s', urlencode($container->GetIdentifier()), $container->GetMaxShutdownTime()));
|
$url = $this->BuildApiUrl(sprintf('containers/%s/stop?t=%s', urlencode($container->GetIdentifier()), $container->GetMaxShutdownTime()));
|
||||||
try {
|
try {
|
||||||
$this->guzzleClient->post($url);
|
$this->guzzleClient->post($url);
|
||||||
} catch (\Exception $e) {}
|
} catch (\GuzzleHttp\Exception\RequestException $e) {
|
||||||
|
if ($e->getCode() !== 404 && $e->getCode() !== 304) {
|
||||||
|
throw $e;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function GetBackupcontainerExitCode() : int
|
public function GetBackupcontainerExitCode() : int
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue