Fix the failure of event based chart replication

Fix the failure of event based chart replication

Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
Wenkai Yin 2021-04-27 09:32:39 +08:00
parent af12f9aa01
commit e04c866ccc

View File

@ -64,7 +64,7 @@ func (t *transfer) Transfer(src *model.Resource, dst *model.Resource) error {
}
var contentURL string
if len(src.ExtendedInfo) > 0 {
if len(src.ExtendedInfo) > 0 && src.ExtendedInfo["contentURL"] != nil {
contentURL = src.ExtendedInfo["contentURL"].(string)
}