lib/vagrant-libvirt/plugin.rb in vagrant-libvirt-0.0.32 vs lib/vagrant-libvirt/plugin.rb in vagrant-libvirt-0.0.33
- old
+ new
@@ -8,9 +8,12 @@
# this into an early Vagrant version.
if Vagrant::VERSION < '1.5.0'
raise 'The Vagrant Libvirt plugin is only compatible with Vagrant 1.5+'
end
+# compatibility fix to define constant not available vagrant <1.6
+::Vagrant::MachineState::NOT_CREATED_ID ||= :not_created
+
module VagrantPlugins
module ProviderLibvirt
class Plugin < Vagrant.plugin('2')
name 'libvirt'
description <<-DESC