mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merge pull request #779 from ericpulvino/int-exhaustion-error
Reverts PR#777 and adds a new error message for a different case
This commit is contained in:
@@ -53,7 +53,7 @@ module VagrantPlugins
|
||||
else
|
||||
free_slot = find_empty(adapters)
|
||||
@logger.debug "Adapter not specified so found slot #{free_slot}"
|
||||
raise Errors::InterfaceSlotNotAvailable if free_slot.nil?
|
||||
raise Errors::InterfaceSlotExhausted if free_slot.nil?
|
||||
end
|
||||
|
||||
# We have slot for interface, fill it with interface configuration.
|
||||
|
||||
@@ -117,6 +117,10 @@ module VagrantPlugins
|
||||
error_key(:interface_slot_not_available)
|
||||
end
|
||||
|
||||
class InterfaceSlotExhausted < VagrantLibvirtError
|
||||
error_key(:interface_slot_exhausted)
|
||||
end
|
||||
|
||||
class RsyncError < VagrantLibvirtError
|
||||
error_key(:rsync_error)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user