Permalink
Browse files

Don't try to get ELB keys if none specified in configuration template

  • Loading branch information...
1 parent 94e3938 commit d315124cfa1c58987f2885319511f369c92ea225 Amit Gupta and Sean Sweda committed Apr 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 bosh_aws_bootstrap/lib/bosh/cli/commands/aws.rb
View
2 bosh_aws_bootstrap/lib/bosh/cli/commands/aws.rb
@@ -203,7 +203,7 @@ def create_vpc(config_file)
route53 = Bosh::Aws::Route53.new(config["aws"])
elbs = config["vpc"]["elbs"]
- say "creating load balancers: #{elbs.keys.join(", ")}"
+ say "creating load balancers: #{elbs.keys.join(", ")}" if elbs
elbs.each do |name, settings|
e = elb.create(name, vpc, settings)
if settings["dns_record"]

0 comments on commit d315124

Please sign in to comment.