lib/chef/knife/google_disk_create.rb in knife-google-3.3.3 vs lib/chef/knife/google_disk_create.rb in knife-google-3.3.6
- old
+ new
@@ -45,10 +45,10 @@
long: "--gce-disk-source_image IMAGE_URL",
description: "GCE disk source image to use when creating disk, such as projects/centos-cloud/global/images/centos-7-v20160216; optional, if not supplied, a blank disk will be created",
default: nil
def validate_params!
- check_for_missing_config_values!(:disk_size, :disk_type)
+ check_for_missing_config_values!(:gce_zone, :disk_size, :disk_type)
raise "Please specify a disk name." unless @name_args.first
raise "Disk size must be between 10 and 10,000" unless valid_disk_size?(locate_config_value(:disk_size))
super
end