Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Brosse committed Apr 2, 2020
1 parent 3da8792 commit 8465757
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 2 additions & 0 deletions internal/human/marshal_func.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ func isMarshalable(t reflect.Type) bool {
(t.Kind() == reflect.Ptr && isMarshalable(t.Elem()))
}

// EnumMarshalSpec contains specs used by EnumMarshalFunc.
type EnumMarshalSpec struct {
// Attribute (mainly colors) to use.
Attribute color.Attribute
Expand All @@ -112,6 +113,7 @@ type EnumMarshalSpec struct {

type EnumMarshalSpecs map[interface{}]*EnumMarshalSpec

// EnumMarshalFunc returns a marshal func to marshal an enum.
func EnumMarshalFunc(specs EnumMarshalSpecs) MarshalerFunc {
return func(i interface{}, opt *MarshalOpt) (s string, e error) {
value, _ := defaultMarshalerFunc(i, opt)
Expand Down
5 changes: 0 additions & 5 deletions internal/namespaces/instance/v1/custom_server_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ func serverTypeListBuilder(c *core.Command) *core.Command {
serverAvailabilities = availabilitiesResponse.Servers
}

// Remove me
serverAvailabilities["ARM64-2GB"] = instance.ServerTypesAvailabilityAvailable // available green
serverAvailabilities["ARM64-4GB"] = instance.ServerTypesAvailabilityScarce // low Stock orange
serverAvailabilities["ARM64-8GB"] = instance.ServerTypesAvailabilityShortage // temporarily out of stock red

for name, serverType := range listServersTypesResponse.Servers {
_, isDeprecated := deprecatedNames[name]
if isDeprecated {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NAME MONTHLY PRICE HOURLY PRICE LOCAL VOLUME SIZE CPU GPU RAM ARCH AVAILABILITY
ARM64-2GB € 2.99 € 0.006 50 GB 4 2.0 GiB arm64 available
ARM64-4GB € 5.99 € 0.012 100 GB 6 4.0 GiB arm64 low stock
ARM64-8GB € 11.99 € 0.024 200 GB 8 8.0 GiB arm64 out of stock
ARM64-4GB € 5.99 € 0.012 100 GB 6 4.0 GiB arm64 available
ARM64-8GB € 11.99 € 0.024 200 GB 8 8.0 GiB arm64 available
ARM64-16GB € 34.99 € 0.07 200 GB 16 16 GiB arm64 available
ARM64-32GB € 69.99 € 0.14 300 GB 32 32 GiB arm64 available
ARM64-64GB € 139.99 € 0.28 400 GB 48 64 GiB arm64 available
Expand Down

0 comments on commit 8465757

Please sign in to comment.