Skip to content

Commit

Permalink
[launcher] check for nil classic link
Browse files Browse the repository at this point in the history
we attempt to index into it directly, but it might be nil
  • Loading branch information
igor47 committed Jul 28, 2016
1 parent da15775 commit 61f54ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/stemcell/launcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ def set_tags(instances=[], tags)
end

def set_classic_link(left_to_process, classic_link)
return unless classic_link
return unless classic_link['vpc_id']
return unless classic_link['security_group_ids'] && !classic_link['security_group_ids'].empty?

Expand Down
2 changes: 1 addition & 1 deletion lib/stemcell/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Stemcell
VERSION = "0.10.0"
VERSION = "0.10.1"
end

0 comments on commit 61f54ed

Please sign in to comment.