From 68feb46307bda19a1d2944413c4357a12a462514 Mon Sep 17 00:00:00 2001 From: Yukine Date: Thu, 4 Feb 2021 03:02:28 +0100 Subject: [PATCH] refactor(main)!: change snapshot name to date only --- cmd/DigitalOceanSnapshotter/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/DigitalOceanSnapshotter/main.go b/cmd/DigitalOceanSnapshotter/main.go index 457aeff..04d59dd 100644 --- a/cmd/DigitalOceanSnapshotter/main.go +++ b/cmd/DigitalOceanSnapshotter/main.go @@ -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)