From d40ba7968c0b25226933e838725f00a159dfa6d8 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 14 Mar 2013 20:40:52 -0700 Subject: [PATCH] Fix `vagrant package` to avoid nil errors [GH-1423] --- CHANGELOG.md | 1 + lib/vagrant/action/general/package.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3429ec02f..7b3a0d78c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ BUG FIXES: - Quote keys to StringBlockEditor so keys with spaces, parens, and so on work properly. - When there is no route to host for SSH, re-establish a new connection. + - `vagrant package` once again works, no more nil error. [GH-1423] ## 1.1.0 (March 14, 2013) diff --git a/lib/vagrant/action/general/package.rb b/lib/vagrant/action/general/package.rb index 01077b294..450c34844 100644 --- a/lib/vagrant/action/general/package.rb +++ b/lib/vagrant/action/general/package.rb @@ -22,7 +22,7 @@ module Vagrant @app = app env["package.files"] ||= {} - env["package.output"] ||= env["global_config"].package.name + env["package.output"] ||= env[:global_config].package.name end def call(env)