Method: KnifeCloudstack::CsServerCreate#validate_options

Defined in:
lib/chef/knife/cs_server_create.rb

#validate_optionsObject



229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
# File 'lib/chef/knife/cs_server_create.rb', line 229

def validate_options

  unless locate_config_value :cloudstack_template
    ui.error "Cloudstack template not specified"
    exit 1
  end

  unless locate_config_value :cloudstack_service
    ui.error "Cloudstack service offering not specified"
    exit 1
  end

  identity_file = locate_config_value :identity_file
  ssh_user = locate_config_value :ssh_user
  ssh_password = locate_config_value :ssh_password
  #unless identity_file || (ssh_user && ssh_password)
  #  ui.error("You must specify either an ssh identity file or an ssh user and password")
    #exit 1
  #end
end