Skip to content

Commit

Permalink
fix: counting error state
Browse files Browse the repository at this point in the history
  • Loading branch information
alikhil committed Aug 9, 2023
1 parent 5c363f0 commit af0744d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/yandexcloud/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions engine/planner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit af0744d

Please sign in to comment.