lib/routes/main.rb in gaptool-server-0.5.12 vs lib/routes/main.rb in gaptool-server-0.5.13
- old
+ new
@@ -64,11 +64,11 @@
error 404
end
if keys.length > 1
error 409
end
- data = $redis.hgetall(keys.first)
- if data['terminate'] == false
+ hdata = $redis.hgetall(keys.first)
+ if hdata['terminate'] == false
error 403
end
@ec2 = AWS::EC2.new
@instance = @ec2.instances[data['id']]