From 916c97b4a87cfc4d9cad9aaaedcc33b0de75a032 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Mon, 12 Jul 2021 12:41:00 +0530 Subject: [PATCH] rbd: copy creds when copying the connection rbd flatten functions is a CLI call and it expects the creds as the input and copying of creds is required when we generate the temp clone image. Signed-off-by: Madhu Rajanna --- internal/util/connection.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/util/connection.go b/internal/util/connection.go index 1be531a1a..9625d4e30 100644 --- a/internal/util/connection.go +++ b/internal/util/connection.go @@ -81,6 +81,7 @@ func (cc *ClusterConnection) Copy() *ClusterConnection { c := ClusterConnection{} c.discardOnZeroedWriteSameDisabled = cc.discardOnZeroedWriteSameDisabled c.conn = connPool.Copy(cc.conn) + c.Creds = cc.Creds return &c }