@@ -65,6 +65,8 @@ func DescribeServerType(s state.State, serverType *hcloud.ServerType, short bool
6565 for _ , info := range locations {
6666
6767 fmt .Fprintf (& sb , " - Location:\t %s\n " , info .Location .Name )
68+ fmt .Fprintf (& sb , " Available:\t %s\n " , util .YesNo (info .Available ))
69+ fmt .Fprintf (& sb , " Recommended:\t %s\n " , util .YesNo (info .Recommended ))
6870
6971 if deprecationText := util .DescribeDeprecation (info ); deprecationText != "" {
7072 fmt .Fprint (& sb , util .PrefixLines (deprecationText , " " ))
@@ -97,16 +99,15 @@ func fullPricingInfo(s state.State, serverType *hcloud.ServerType) ([]hcloud.Ser
9799}
98100
99101type locationInfo struct {
100- Location * hcloud.Location
101- hcloud.DeprecatableResource
102+ * hcloud.ServerTypeLocation
102103 Pricing hcloud.ServerTypeLocationPricing
103104}
104105
105106func joinLocationInfo (serverType * hcloud.ServerType , pricings []hcloud.ServerTypeLocationPricing ) []locationInfo {
106107 locations := make ([]locationInfo , 0 , len (serverType .Locations ))
107108
108109 for _ , location := range serverType .Locations {
109- info := locationInfo {Location : location . Location , DeprecatableResource : location . DeprecatableResource }
110+ info := locationInfo {ServerTypeLocation : & location }
110111
111112 for _ , pricing := range pricings {
112113 // Pricing endpoint only sets the location name
0 commit comments