mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-04 17:59:36 +00:00
update node name in s3 files
Signed-off-by: Brian Downs <brian.downs@gmail.com>
This commit is contained in:
@@ -938,10 +938,12 @@ func (e *ETCD) listSnapshots(ctx context.Context, snapshotDir string) ([]snapsho
|
||||
return nil, err
|
||||
}
|
||||
|
||||
nodeName := os.Getenv("NODE_NAME")
|
||||
|
||||
for _, f := range files {
|
||||
snapshots = append(snapshots, snapshotFile{
|
||||
Name: filepath.Join(snapshotDir, f.Name()),
|
||||
NodeName: "",
|
||||
NodeName: nodeName,
|
||||
CreatedAt: f.ModTime().String(),
|
||||
Size: f.Size(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user