mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
fix indentation
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
e30b4562b2
commit
4a8e0c8415
1 changed files with 18 additions and 18 deletions
|
|
@ -851,26 +851,26 @@ readonly class DockerActionManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($createNetwork) {
|
if ($createNetwork) {
|
||||||
$url = $this->BuildApiUrl('networks/create');
|
$url = $this->BuildApiUrl('networks/create');
|
||||||
try {
|
try {
|
||||||
$this->guzzleClient->request(
|
$this->guzzleClient->request(
|
||||||
'POST',
|
'POST',
|
||||||
$url,
|
$url,
|
||||||
[
|
[
|
||||||
'json' => [
|
'json' => [
|
||||||
'Name' => $network,
|
'Name' => $network,
|
||||||
'CheckDuplicate' => true,
|
'CheckDuplicate' => true,
|
||||||
'Driver' => 'bridge',
|
'Driver' => 'bridge',
|
||||||
'Internal' => false,
|
'Internal' => false,
|
||||||
]
|
|
||||||
]
|
]
|
||||||
);
|
]
|
||||||
} catch (RequestException $e) {
|
);
|
||||||
// 409 is undocumented and gets thrown if the network already exists.
|
} catch (RequestException $e) {
|
||||||
if ($e->getCode() !== 409) {
|
// 409 is undocumented and gets thrown if the network already exists.
|
||||||
throw new \Exception("Could not create the nextcloud-aio network: " . $e->getMessage());
|
if ($e->getCode() !== 409) {
|
||||||
}
|
throw new \Exception("Could not create the nextcloud-aio network: " . $e->getMessage());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$url = $this->BuildApiUrl(
|
$url = $this->BuildApiUrl(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue