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

Allow clone vm from different datacenter #263

Merged
merged 4 commits into from
Oct 7, 2020
Merged

Conversation

scambra
Copy link
Contributor

@scambra scambra commented Oct 6, 2020

if datacenter option is in clone arguments, add vm's datacenter as template_datacenter, as vm to use as template may be in different datacenter

if datacenter option is in clone arguments, add vm's datacenter as template_datacenter, as vm to use as template may be in different datacenter
Copy link
Collaborator

@ezr-ondrej ezr-ondrej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great addition @scambra ! 👍
Just one nit, let me know what you think :)
Love the dead code deletion! please more of that xD

lib/fog/vsphere/models/compute/server.rb Outdated Show resolved Hide resolved
@@ -104,14 +110,11 @@ def vm_clone(options = {})
# Option handling
options = vm_clone_check_options(options)

# Added for people still using options['path']
template_path = options['path'] || options['template_path']
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 I bet there is more dead code like this xD

Co-authored-by: Ondřej Ezr <ezrik12@gmail.com>
Copy link
Collaborator

@ezr-ondrej ezr-ondrej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @scambra ! 👍

@ezr-ondrej ezr-ondrej merged commit b517878 into fog:master Oct 7, 2020
@ezr-ondrej ezr-ondrej changed the title clone vm in different datacenter Allow clone vm from different datacenter Oct 7, 2020
@ezr-ondrej
Copy link
Collaborator

Do you need this released fast or can it wait a while?

@chris1984
Copy link
Collaborator

Starting to kick off regression tests

@scambra
Copy link
Contributor Author

scambra commented Oct 8, 2020

I can wait, I can use repository in gemfile until it's released

@scambra scambra deleted the clone-to-dc branch October 8, 2020 11:11
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.

3 participants