Permalink
Browse files

Cleaning up overzealous Elastic IP inclusion (alternative fix to #222)

  • Loading branch information...
1 parent 91b2616 commit 8341a4cd0a3c722943404ec630bb5a7d01dc38cc @temujin9 temujin9 committed Dec 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ironfan/provider/ec2/elastic_ip.rb
@@ -50,7 +50,7 @@ def self.load!(cluster=nil)
#
def self.save!(computer)
- return unless computer.created?
+ return unless (computer.created? and not computer.server.ec2.elastic_ip.nil?)
elastic_ip = computer.server.ec2.elastic_ip
Ironfan.step(computer.name, "associating Elastic IP #{elastic_ip}", :blue)
Ironfan.unless_dry_run do

1 comment on commit 8341a4c

Contributor

schade commented on 8341a4c Dec 12, 2012

This is very similar to and, in my opinion, a better placement of the code to what I suggested on Nick's original comment. Good call.

Please sign in to comment.