mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Must load vagrant before checking version
This commit is contained in:
parent
4536218d33
commit
f8241645fc
@ -13,6 +13,12 @@ module VagrantPlugins
|
||||
end
|
||||
end
|
||||
|
||||
begin
|
||||
require 'vagrant'
|
||||
rescue LoadError
|
||||
raise 'The Vagrant Libvirt plugin must be run within Vagrant.'
|
||||
end
|
||||
|
||||
# This is a sanity check to make sure no one is attempting to install
|
||||
# this into an early Vagrant version.
|
||||
if Vagrant::VERSION < '1.5.0'
|
||||
|
Loading…
Reference in New Issue
Block a user