Skip to content

Commit

Permalink
Merge pull request sous-chefs#156 from mkantor/fix-raid-disk-creation…
Browse files Browse the repository at this point in the history
…-with-no-snapshots

Make ebs_raid resource usable without a `snapshots` attribute
  • Loading branch information
miketheman committed Jun 28, 2015
2 parents f125c2f + 76db74b commit cef5c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/ebs_raid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cef5c8e

Please sign in to comment.