mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
fix init pattern
This commit is contained in:
parent
5cf1950ef8
commit
ae7c1187bf
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user