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

Support linked_clone for Vagrant 2.X #1085

Merged
merged 2 commits into from
Jan 15, 2018
Merged

Support linked_clone for Vagrant 2.X #1085

merged 2 commits into from
Jan 15, 2018

Conversation

saez0pub
Copy link
Contributor

@saez0pub saez0pub commented Jan 9, 2018

Add support for vagrant 2.X resolves the #1084

Add support for vagrant 2.X
@retr0h retr0h added the v2.7 label Jan 9, 2018
@retr0h
Copy link
Contributor

retr0h commented Jan 9, 2018

Please correct the commit message so it has a descriptive commit message in the subject and body.

@retr0h retr0h changed the title this resolves the #1084 Support linked_clone for Vagrant 2.X Jan 9, 2018
if Vagrant::VERSION =~ /^1.[89]/
virtualbox.linked_clone = provider['options']['linked_clone']
end
virtualbox.linked_clone = provider['options']['linked_clone'] if Gem::Version.new(Vagrant::VERSION) >= Gem::Version.new('1.8.0')
Copy link
Contributor

@retr0h retr0h Jan 9, 2018

Choose a reason for hiding this comment

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

While I understand this is a more ruby way of doing things with the one line setting of a conditional var, it will exceed the project line length limit. Please use the Gem version comparison, but keep the conditional on a separate line.

if Vagrant::VERSION =~ /^1.[89]/
virtualbox.linked_clone = true
end
virtualbox.linked_clone = true if Gem::Version.new(Vagrant::VERSION) >= Gem::Version.new('1.8.0')
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@retr0h retr0h merged commit e5715e0 into ansible:master Jan 15, 2018
@ssbarnea ssbarnea added this to the 2.7 milestone Apr 2, 2019
@ssbarnea ssbarnea removed the v2.7 label Apr 2, 2019
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