Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix return value of Clone functions when CloneOptions.NewID is set #160

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

rybnico
Copy link
Contributor

@rybnico rybnico commented Sep 5, 2024

The Clone functions (Container.Clone and VM.Clone), when called with CloneOptions.NewID set, return 0 instead of the NewID.

I extended the tests. Updated TestContainerClone and new TestVirtualMachineClone tests fail without this fix.

The `Clone` functions (`Container.Clone` and `VM.Clone`), when called
with `CloneOptions.NewID` set, return 0 instead of the `NewID`.
containers.go Outdated Show resolved Hide resolved
@luthermonson
Copy link
Owner

excellent pr @rybnico and thanks for your contribution

@luthermonson luthermonson merged commit a68ae4a into luthermonson:main Sep 9, 2024
1 check passed
@rybnico
Copy link
Contributor Author

rybnico commented Sep 13, 2024

@luthermonson Any plans to do a new patch release? I have another PR that needs this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants