Skip to content

Commit

Permalink
Bugfix: IsValid() -> !IsValid()
Browse files Browse the repository at this point in the history
  • Loading branch information
juselius committed Nov 13, 2019
1 parent c4a4062 commit d06fc13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hyperv/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func stringKeyInMap(valid interface{}, ignoreCase bool) schema.SchemaValidateFun
mapKeyType := reflect.ValueOf(mapKeyString)
mapValueType := mapType.MapIndex(mapKeyType)

if mapValueType.IsValid() {
if !mapValueType.IsValid() {
es = append(es, fmt.Errorf("expected %s to be one of %mapKeyString, got %s", k, valid, mapKeyString))
}

Expand Down Expand Up @@ -230,4 +230,4 @@ func ValueOrIntBetween(value, min, max int) schema.SchemaValidateFunc {

return
}
}
}

0 comments on commit d06fc13

Please sign in to comment.