Commit a6f64cc7 authored by Brian Downs's avatar Brian Downs

update node name in s3 files

parent 10f0a790
......@@ -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(),
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment