Use the serviceShard variable in the service shard block, not the service variable.

This commit is contained in:
Madhusudan.C.S 2016-12-08 11:13:29 -08:00
parent 8f11cc78a8
commit c1cede22cf

View File

@ -217,8 +217,8 @@ var _ = framework.KubeDescribe("[Feature:Federation]", func() {
}
if serviceShard != nil {
By(fmt.Sprintf("Deleting service shards and their provider resources in underlying clusters for service %q in namespace %q", service.Name, nsName))
cleanupServiceShardsAndProviderResources(nsName, service, clusters)
By(fmt.Sprintf("Deleting service shards and their provider resources in underlying clusters for service %q in namespace %q", serviceShard.Name, nsName))
cleanupServiceShardsAndProviderResources(nsName, serviceShard, clusters)
serviceShard = nil
} else {
By("No service shards to delete. `serviceShard` is nil")