Commit ae7c1187 authored by danielqsj's avatar danielqsj

fix init pattern

parent 5cf1950e
......@@ -136,7 +136,7 @@ func verifyPodExists(response []byte, containerName string) (bool, error) {
}
func parseResource(resource interface{}) (*Resource, error) {
var labels = map[string]string{}
labels := map[string]string{}
resourceMap, ok := resource.(map[string]interface{})
if !ok {
return nil, fmt.Errorf("Resource entry is of type %s, expected map[string]interface{}", reflect.TypeOf(resource))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment