From 76db74ba16711c72f7b971a660cee1017e5c96c9 Mon Sep 17 00:00:00 2001 From: Matt Kantor Date: Tue, 16 Jun 2015 10:31:44 -0700 Subject: [PATCH] Change empty value for snapshot_id from '' to nil. Before this change, using the ebs_raid resource without a `snapshots` attribute produced the following error: > Aws::EC2::Errors::MissingParameter > The request must contain the parameter size/snapshot Fixes #118. --- providers/ebs_raid.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/ebs_raid.rb b/providers/ebs_raid.rb index 2a7016ea..d628bd07 100644 --- a/providers/ebs_raid.rb +++ b/providers/ebs_raid.rb @@ -345,7 +345,7 @@ def create_raid_disks(mount_point, mount_point_owner, mount_point_group, mount_p device "/dev/#{disk_dev_path}" name disk_dev_path action [:create, :attach] - snapshot_id creating_from_snapshot ? snapshots[i - 1] : '' + snapshot_id creating_from_snapshot ? snapshots[i - 1] : nil provider 'aws_ebs_volume' # set up our data bag info