From e04c866cccf18eb10315a23ad36d5215caf98205 Mon Sep 17 00:00:00 2001 From: Wenkai Yin Date: Tue, 27 Apr 2021 09:32:39 +0800 Subject: [PATCH] Fix the failure of event based chart replication Fix the failure of event based chart replication Signed-off-by: Wenkai Yin --- src/controller/replication/transfer/chart/transfer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/replication/transfer/chart/transfer.go b/src/controller/replication/transfer/chart/transfer.go index 7ce9750a1..608119bb5 100644 --- a/src/controller/replication/transfer/chart/transfer.go +++ b/src/controller/replication/transfer/chart/transfer.go @@ -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) }