diff --git a/src/scripts/aws.coffee b/src/scripts/aws.coffee index 89442a013..be99175e9 100644 --- a/src/scripts/aws.coffee +++ b/src/scripts/aws.coffee @@ -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}"