mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00:00
Merge pull request #159 from nextcloud/enh/fix-network-creation
Catch undocumented case when network already exists
This commit is contained in:
commit
343eebbbcd
1 changed files with 4 additions and 1 deletions
|
|
@ -436,8 +436,11 @@ class DockerActionManager
|
|||
]
|
||||
);
|
||||
} catch (RequestException $e) {
|
||||
// 409 is undocumented and gets thrown if the network already exists.
|
||||
if ($e->getCode() !== 409) {
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
||||
$url = $this->BuildApiUrl(
|
||||
sprintf('networks/%s/connect', 'nextcloud-aio')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue