should cast va instead of pv

pull/8/head
yue9944882 2018-08-16 11:15:08 +08:00
parent 76e9fdaa72
commit 715f04b2ed
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ func (g *graphPopulator) deleteVolumeAttachment(obj interface{}) {
if tombstone, ok := obj.(cache.DeletedFinalStateUnknown); ok {
obj = tombstone.Obj
}
attachment, ok := obj.(*api.PersistentVolume)
attachment, ok := obj.(*storagev1beta1.VolumeAttachment)
if !ok {
glog.Infof("unexpected type %T", obj)
return