mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
rbd: use GetCreationTime()
to build the CSI-Snapshot object
Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
committed by
mergify[bot]
parent
8ddb615df2
commit
f885c77f4e
@ -1641,6 +1641,10 @@ func (ri *rbdImage) GetCreationTime(ctx context.Context) (*time.Time, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if ri.CreatedAt == nil {
|
||||
return nil, fmt.Errorf("failed to get creation time for image %q", ri)
|
||||
}
|
||||
|
||||
return ri.CreatedAt, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user