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 ...@@ -938,10 +938,12 @@ func (e *ETCD) listSnapshots(ctx context.Context, snapshotDir string) ([]snapsho
return nil, err return nil, err
} }
nodeName := os.Getenv("NODE_NAME")
for _, f := range files { for _, f := range files {
snapshots = append(snapshots, snapshotFile{ snapshots = append(snapshots, snapshotFile{
Name: filepath.Join(snapshotDir, f.Name()), Name: filepath.Join(snapshotDir, f.Name()),
NodeName: "", NodeName: nodeName,
CreatedAt: f.ModTime().String(), CreatedAt: f.ModTime().String(),
Size: f.Size(), 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