refactor(main)!: change snapshot name to date only
This commit is contained in:
parent
9f004aede0
commit
68feb46307
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user