mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-26 00:00:23 +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