refactor(main)!: change snapshot name to date only

This commit is contained in:
Yukine 2021-02-04 03:02:28 +01:00
parent 9f004aede0
commit 68feb46307
No known key found for this signature in database
GPG Key ID: 6AE0B5764F0126D1
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ func main() {
_, _, err = ctx.DoContext.CreateSnapshot(&godo.SnapshotCreateRequest{
VolumeID: volume.ID,
Name: fmt.Sprintf("%s-%s", volume.Name, time.Now().Format("2006-01-02 15:04:05")),
Name: time.Now().Format("2006-01-02T15:04:05"),
})
if err != nil {
handleError(ctx, err, true)