mirror of
https://github.com/Telmate/proxmox-api-go.git
synced 2026-04-25 23:45:55 +03:00
[PR #267] [MERGED] Refactor: Snapshots #357
Labels
No labels
good first issue
issue/confirmed
issue/critical
proposal/accepted
pull-request
type/bug
type/enhancement
type/feature
type/question
type/refactoring
type/testing
type/testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxmox-api-go#357
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Telmate/proxmox-api-go/pull/267
Author: @Tinyblargon
Created: 6/8/2023
Status: ✅ Merged
Merged: 6/8/2023
Merged by: @mleone87
Base:
master← Head:Refactor-Snapshot📝 Commits (2)
3429311makeCreateSnapshot()use `VmRef1 as input621fed4Change pointer to normal variable📊 Changes
2 files changed (+10 additions, -5 deletions)
View changed files
📝
cli/command/create/create-snapshot.go(+7 -1)📝
proxmox/snapshot.go(+3 -4)📄 Description
Noticed that
CreateSnapshot()was the only function in snapshot.go that did not useVmRefas input and would create its ownVmRef.Also changed
(config *ConfigSnapshot) CreateSnapshot()to(config ConfigSnapshot) CreateSnapshot()as there is no benefit for having the pointer there, since it never needs to be mutated by multiple functions and its too small to be worth the overhead of creating a pointer.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.