Merge pull request #159 from nextcloud/enh/fix-network-creation

Catch undocumented case when network already exists
This commit is contained in:
Simon L 2022-01-21 14:29:30 +01:00 committed by GitHub
commit 343eebbbcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')