diff --git a/plugins/commands/serve/mappers/mapper.rb b/plugins/commands/serve/mappers/mapper.rb index eb3649dbe..80b68d14a 100644 --- a/plugins/commands/serve/mappers/mapper.rb +++ b/plugins/commands/serve/mappers/mapper.rb @@ -48,7 +48,7 @@ module VagrantPlugins # @param arg [Object] Argument to validate # @return [Boolean] def valid?(arg) - if !arg.is_a?(type) + if !arg.is_a?(type) && arg != type return false end validator.call(arg)