Skip to content

Commit

Permalink
Merge pull request mitchellh#456 from tuxinaut/code_style_fixes
Browse files Browse the repository at this point in the history
Remove trailing whitespace in run_instances.rb
  • Loading branch information
R. Tyler Croy committed Apr 8, 2016
2 parents db7bf88 + 8a1d6e2 commit a4b0866
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vagrant-aws/action/run_instance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -284,15 +284,15 @@ def do_elastic_ip(env, domain, server, elastic_ip)
end

# Save this IP to the data dir so it can be released when the instance is destroyed
if h
if h
ip_file = env[:machine].data_dir.join('elastic_ip')
ip_file.open('w+') do |f|
f.write(h.to_json)
end
end
end

def handle_elastic_ip_error(env, message)
def handle_elastic_ip_error(env, message)
@logger.debug(message)
terminate(env)
raise Errors::FogError,
Expand Down

0 comments on commit a4b0866

Please sign in to comment.