Skip to content

Instantly share code, notes, and snippets.

View remd's full-sized avatar

Eric Dostie remd

View GitHub Profile
@remd
remd / vagrant-box-update-debug.output
Last active February 4, 2018 16:59
vagrant box update - 404 Not Found - debug output
$ vagrant --debug box update > debug.output 2>&1
Ignoring ffi-1.9.18 because its extensions are not built. Try: gem pristine ffi --version 1.9.18
Ignoring unf_ext-0.0.7.4 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.4
INFO global: Vagrant version: 2.0.2
INFO global: Ruby version: 2.3.1
INFO global: RubyGems version: 2.5.2.1
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/gems/vagrant-2.0.2/bin/vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
override def query(q: String) = {
val responses = clients.map {client => client.query(q)}
val matches = responses.map {response => JSON.parseFull(response.get().getContent().toString("UTF-8")) match {
case Some(obj: Map[String, List[Match]]) => obj("results")
}}
querySuccessResponse(matches)
}