summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Campi <andrea.campi@zephirworks.com>2011-10-12 20:00:55 +0200
committerDaniel DeLeo <dan@opscode.com>2011-10-25 15:56:24 -0700
commit173ec322975ce13a443a097cd0ba4c3071857f17 (patch)
tree183840431ba0cfab2712daa65cb36d8adfe953ae
parente4dbe1f03fc11f0198174fb24adc2a51cf098fad (diff)
downloadchef-173ec322975ce13a443a097cd0ba4c3071857f17.tar.gz
CHEF-2675: fix a couple of uses of a variable that is just not there.
-rw-r--r--chef-server-api/app/controllers/sandboxes.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/chef-server-api/app/controllers/sandboxes.rb b/chef-server-api/app/controllers/sandboxes.rb
index e49209e324..8732ac3b8c 100644
--- a/chef-server-api/app/controllers/sandboxes.rb
+++ b/chef-server-api/app/controllers/sandboxes.rb
@@ -103,9 +103,9 @@ class Sandboxes < Application
def update
# look up the sandbox by its guid
existing_sandbox = Chef::Sandbox.cdb_load(params[:sandbox_id])
- raise NotFound, "cannot find sandbox with guid #{sandbox_id}" unless existing_sandbox
+ raise NotFound, "cannot find sandbox with guid #{params[:sandbox_id]}" unless existing_sandbox
- raise BadRequest, "cannot update sandbox #{sandbox_id}: already complete" if existing_sandbox.is_completed
+ raise BadRequest, "cannot update sandbox #{params[:sandbox_id]}: already complete" if existing_sandbox.is_completed
if params[:is_completed]
existing_sandbox.is_completed = (params[:is_completed] == true)