From 87dc7aff36e042b9743aa7ce8430d0f1ba924c8a Mon Sep 17 00:00:00 2001 From: Thomas Cramer Date: Mon, 23 Jun 2014 19:25:25 -0700 Subject: [PATCH] Update to allow encrypted volumes to be created --- lib/ec2/right_ec2_ebs.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ec2/right_ec2_ebs.rb b/lib/ec2/right_ec2_ebs.rb index 4de583a..359c900 100644 --- a/lib/ec2/right_ec2_ebs.rb +++ b/lib/ec2/right_ec2_ebs.rb @@ -106,6 +106,7 @@ def create_volume(snapshot_id, size, zone, options={}) if options[:options][:api_version] >= VOLUME_API_VERSION hash["VolumeType"] = options[:volume_type] unless options[:volume_type].right_blank? hash["Iops"] = options[:iops] unless options[:iops].right_blank? + hash["Encrypted"] = options[:encrypted] unless options[:encrypted].right_blank? end link = generate_request("CreateVolume", hash, options[:options]) request_info(link, QEc2CreateVolumeParser.new(:logger => @logger)) @@ -395,6 +396,7 @@ def tagend(name) when 'availabilityZone' then @result[:zone] = @text ### when 'volumeType' then @result[:volume_type] = @text when 'iops' then @result[:iops] = @text + when 'encrypted' then @result[:encrypted] = @text end end def reset @@ -511,4 +513,4 @@ def reset end -end \ No newline at end of file +end