sacloud / libsacloud

[Deprecated] Library for SAKURA Cloud API with Go
Apache License 2.0
18 stars 13 forks source link

Remove CentOS8 from ostype #854

Closed yamamoto-febc closed 2 years ago

yamamoto-febc commented 2 years ago

closes #850

ostypeからCentOS8を除去する。

影響

バージョンを指定しないCentOSまたはcentosを指定したの挙動が変更される。 従来は以下のようになっていた。

    CentOS: {
        search.Key(keys.Tags): search.TagsAndEqual("current-stable", "distro-centos"),
    },

しかしCentOSには現在current-stableタグを持つアーカイブは存在しない。 このためCentOSを指定した場合はアーカイブが見つからないという状態になる。

この状態は好ましくないため、CentOSが指定された場合はdistro-centosタグを持つアーカイブを検索し、見つかった先頭の1件を返すようにする。

バージョン指定をする場合(CentOS7 or CentOS8Stream)については変更/影響なし。