mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 14:20:19 +00:00
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 <madhupr007@gmail.com>
This commit is contained in:
parent
08728b631b
commit
916c97b4a8
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user