lib/routes/main.rb in gaptool-server-0.5.1 vs lib/routes/main.rb in gaptool-server-0.5.2
- old
+ new
@@ -16,10 +16,10 @@
# create shared secret to reference in /register
@secret = (0...8).map{65.+(rand(26)).chr}.join
data.merge!("secret" => @secret)
security_group = data['security_group'] || $redis.hget("role:#{data['role']}", "security_group")
sgid = gt_securitygroup(data['role'], data['environment'], data['zone'], security_group)
- image_id = data['ami'].chop || $redis.hget("amis:#{data['role']}", data['zone'].chop) || $redis.hget("amis", data['zone'].chop)
+ image_id = data['ami'] || $redis.hget("amis:#{data['role']}", data['zone'].chop) || $redis.hget("amis", data['zone'].chop)
puts data['zone']
if data['mirror']
instance = @ec2.instances.create(
:image_id => image_id,
:availability_zone => data['zone'],