#1341 fix condition check on @qemu_use_agent

This commit is contained in:
ma 2021-09-27 13:45:01 +02:00
parent 6c5ecf09af
commit 5f38f8f2a0

View File

@ -162,7 +162,7 @@ module VagrantPlugins
if @interface_network[:created]
# Just check for mismatch error here - if name and ip from
# config match together.
if @options[:network_name] != @interface_network[:name] and @qemu_use_agent = false
if @options[:network_name] != @interface_network[:name] and @qemu_use_agent == false
raise Errors::NetworkNameAndAddressMismatch,
ip_address: @options[:ip],
network_name: @options[:network_name]