Skip to content

Commit eb33f24

Browse files
ricardokirknerRicardo Kirkner
authored andcommitted
fix: let getAutoscalingSettings return empty settings when autoscaling is not available (#1558)
Co-authored-by: Ricardo Kirkner <[email protected]>
1 parent 067f2fc commit eb33f24

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Service/Api.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1808,10 +1808,6 @@ public function getAutoscalingSettingsLink(Environment $environment, bool $manag
18081808
*/
18091809
public function getAutoscalingSettings(Environment $environment)
18101810
{
1811-
if (!$this->getAutoscalingSettingsLink($environment)) {
1812-
throw new EnvironmentStateException('Autoscaling support is not currently available on the environment', $environment);
1813-
}
1814-
18151811
try {
18161812
$settings = $environment->getAutoscalingSettings();
18171813
} catch (EnvironmentStateException $e) {

0 commit comments

Comments
 (0)