lib/routes/main.rb in gaptool-server-0.5.11 vs lib/routes/main.rb in gaptool-server-0.5.12

- old
+ new

@@ -61,10 +61,10 @@ :ec2_endpoint => "ec2.#{data['zone']}.amazonaws.com") keys = $redis.keys("*:*:#{data['id']}") if keys.nil? || keys.empty? error 404 end - if keys.length >= 1 + if keys.length > 1 error 409 end data = $redis.hgetall(keys.first) if data['terminate'] == false error 403