From af0744d70649a446e76fcf78ef329440faa6d983 Mon Sep 17 00:00:00 2001 From: Alik Khilazhev Date: Wed, 9 Aug 2023 11:55:49 +0200 Subject: [PATCH] fix: counting error state --- drivers/yandexcloud/doc.go | 4 ++-- engine/planner.go | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/yandexcloud/doc.go b/drivers/yandexcloud/doc.go index af5f74c3..13d9157f 100644 --- a/drivers/yandexcloud/doc.go +++ b/drivers/yandexcloud/doc.go @@ -22,8 +22,8 @@ DRONE_YANDEX_CLOUD_PLATFORM_ID=standard-v3 DRONE_YANDEX_CLOUD_IMAGE_FOLDER_ID=standard-images DRONE_YANDEX_CLOUD_IMAGE_FAMILY=container-optimized-image DRONE_YANDEX_CLOUD_SECURITY_GROUP_IDS=id,other-id -DRONE_YANDEX_CLOUD_SSH_USER_KEY_PAIR=username:public-ssh +DRONE_YANDEX_CLOUD_SSH_USER=username +DRONE_YANDEX_CLOUD_SSH_USER_AUTHORIZED_KEYS=public-ssh,other-public-ssh DRONE_YANDEX_CLOUD_DOCKER_COMPOSE=docker-compose-config-file - */ package yandexcloud diff --git a/engine/planner.go b/engine/planner.go index f71b10e6..b5c3dcf9 100644 --- a/engine/planner.go +++ b/engine/planner.go @@ -244,6 +244,8 @@ func (p *planner) capacity(ctx context.Context) (capacity, count int, err error) } for _, server := range servers { switch server.State { + case autoscaler.StateError: + // ignore state case autoscaler.StateStopped: // ignore state default: