Use Gem::Version class to ensure expected comparison results
This commit is contained in:
parent
a8966187af
commit
255275061c
|
@ -63,7 +63,7 @@ To have backward compatibility:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
config.vm.provider 'virtualbox' do |v|
|
config.vm.provider 'virtualbox' do |v|
|
||||||
v.linked_clone = true if Vagrant::VERSION >= '1.8.0'
|
v.linked_clone = true if Gem::Version.new(Vagrant::VERSION) >= Gem::Version.new('1.8.0')
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue