Skip to content

Commit f5a9153

Browse files
ArtificialOwlbackportbot[bot]
authored andcommitted
priority on gss.mockup
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
1 parent b1c8282 commit f5a9153

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: lib/Service/GlobalScaleService.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ public function __construct(
111111
* @return array
112112
*/
113113
public function getGlobalScaleInstances(): array {
114+
$mockup = $this->configService->getGSSMockup();
115+
if (!empty($mockup)) {
116+
return $mockup;
117+
}
118+
114119
try {
115120
$lookup = $this->configService->getGSLookup();
116121
$request = new NC22Request(ConfigService::GS_LOOKUP_INSTANCES, Request::TYPE_POST);
@@ -126,7 +131,7 @@ public function getGlobalScaleInstances(): array {
126131
} catch (GSStatusException $e) {
127132
}
128133

129-
return $this->configService->getGSSMockup();
134+
return [];
130135
}
131136

132137

0 commit comments

Comments
 (0)