Fix reference to a class that doesn't exist

This commit is contained in:
Mitchell Hashimoto 2012-01-19 14:21:26 -08:00
parent bdb591bc0f
commit 3db8db9cdc
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ module Vagrant
@logger.info("Loading guest: #{guest}")
if guest.is_a?(Class)
raise Errors::VMGuestError, :_key => :invalid_class, :system => guest.to_s if !(guest <= Systems::Base)
raise Errors::VMGuestError, :_key => :invalid_class, :system => guest.to_s if !(guest <= Guest::Base)
@guest = guest.new(self)
elsif guest.is_a?(Symbol)
guest_klass = Vagrant.guests.get(guest)