mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-07 05:19:50 +00:00
remove dirs from snapshot listing
Signed-off-by: Brian Downs <brian.downs@gmail.com>
This commit is contained in:
@@ -910,6 +910,9 @@ func (e *ETCD) listSnapshots(ctx context.Context, snapshotDir string) ([]snapsho
|
||||
if obj.Err != nil {
|
||||
return nil, obj.Err
|
||||
}
|
||||
if obj.Size == 0 {
|
||||
continue
|
||||
}
|
||||
ca, err := time.Parse(time.RFC3339, obj.LastModified.Format(time.RFC3339))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user