Permalink
Browse files

Merge pull request #615 from Iristyle/patch-11

Bugfix - handle EC2 instances without tagSets
  • Loading branch information...
2 parents c639390 + 875ec6f commit 2ec8e32f79d9e0db19d9669f9cec4e7429128996 @technicalpickles technicalpickles committed Nov 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/scripts/aws.coffee
View
@@ -98,8 +98,8 @@ getRegionInstances = (region, msg) ->
arch = instance.architecture
devType = instance.rootDeviceType
- tags = _.flatten [instance.tagSet.item]
- name = (_.find tags, (t) -> t.key == 'Name').value
+ tags = _.flatten [instance.tagSet?.item ? []]
+ name = (_.find tags, (t) -> t.key == 'Name')?.value ? 'missing'
msg.send "#{prefix} [#{state}] - #{name} / #{type} [#{devType} #{arch}] / #{dnsName} / #{region} / #{id} - started #{launchTime} #{suffix}"

0 comments on commit 2ec8e32

Please sign in to comment.