Skip to content

Commit

Permalink
Merge pull request #391 from ClogenyTechnologies/nim/add_missing_ebs_…
Browse files Browse the repository at this point in the history
…flavors

adding missing m4,d2,t2,and g2 ebs encryption flavors
  • Loading branch information
Nimisha Sharad committed Dec 2, 2015
2 parents a8a8312 + 42e60ec commit 2f878ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/chef/knife/ec2_server_create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -824,10 +824,12 @@ def validate!
if !locate_config_value(:flavor)
ui.error("--ebs-encrypted option requires valid flavor to be specified.")
exit 1
elsif (locate_config_value(:ebs_encrypted) and ! %w(m3.medium m3.large m3.xlarge m3.2xlarge c4.large c4.xlarge
elsif (locate_config_value(:ebs_encrypted) and ! %w(m3.medium m3.large m3.xlarge m3.2xlarge m4.large m4.xlarge
m4.2xlarge m4.4xlarge m4.10xlarge t2.micro t2.small t2.medium t2.large
d2.xlarge d2.2xlarge d2.4xlarge d2.8xlarge c4.large c4.xlarge
c4.2xlarge c4.4xlarge c4.8xlarge c3.large c3.xlarge c3.2xlarge
c3.4xlarge c3.8xlarge cr1.8xlarge r3.large r3.xlarge r3.2xlarge
r3.4xlarge r3.8xlarge i2.xlarge i2.2xlarge i2.4xlarge i2.8xlarge g2.2xlarge).include?(locate_config_value(:flavor)))
r3.4xlarge r3.8xlarge i2.xlarge i2.2xlarge i2.4xlarge i2.8xlarge g2.2xlarge g2.8xlarge).include?(locate_config_value(:flavor)))
ui.error("--ebs-encrypted option is not supported for #{locate_config_value(:flavor)} flavor.")
exit 1
end
Expand Down

0 comments on commit 2f878ef

Please sign in to comment.