modules/mu/clouds/aws/log.rb in cloud-mu-2.0.4 vs modules/mu/clouds/aws/log.rb in cloud-mu-2.1.0beta

- old
+ new

@@ -189,16 +189,17 @@ ) end # Return the cloud descriptor for the Log Group def cloud_desc - MU::Cloud::AWS::Log.find(cloud_id: @cloud_id).values.first + found = MU::Cloud::AWS::Log.find(cloud_id: @cloud_id) + found ? found.values.first : nil end # Canonical Amazon Resource Number for this resource # @return [String] def arn - cloud_desc.arn + cloud_desc ? cloud_desc.arn : nil end # Return the metadata for this log configuration # @return [Hash] def notify