Fix bool parse warning in apimachinery

This commit is contained in:
Dr. Stefan Schimanski 2017-02-27 19:56:39 +01:00
parent 7f626cf836
commit 1900810f97

View File

@ -82,6 +82,9 @@ var (
)
func parseBool(key string) bool {
if len(key) == 0 {
return false
}
value, err := strconv.ParseBool(key)
if err != nil {
utilruntime.HandleError(fmt.Errorf("Couldn't parse '%s' as bool for unstructured mismatch detection", key))