From 9928b9b7b4b001ff670de7e56ae262b10465b5b8 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Wed, 30 Oct 2013 17:56:21 +0100 Subject: [PATCH] feature #2259: Change error message when the instance type does not exist --- src/cloud/ec2/lib/instance.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cloud/ec2/lib/instance.rb b/src/cloud/ec2/lib/instance.rb index d8fdfec12e..21d44b6a0d 100644 --- a/src/cloud/ec2/lib/instance.rb +++ b/src/cloud/ec2/lib/instance.rb @@ -136,15 +136,15 @@ module Instance template_id = template_pool["VMTEMPLATE/TEMPLATE[EC2_INSTANCE_TYPE=\'#{params['InstanceType']}\']/../ID"] if template_id.nil? - rc = OpenNebula::Error.new("InvalidInstanceID.NotFound #{params['InstanceType']}") - rc.ec2_code = "InvalidInstanceID.NotFound" + rc = OpenNebula::Error.new("InvalidInstanceAttributeValue.NotFound #{params['InstanceType']}") + rc.ec2_code = "InvalidInstanceAttributeValue.NotFound" return rc end template = Template.new(Template.build_xml(template_id), @client) rc = template.info if OpenNebula.is_error?(rc) - rc.ec2_code = "InvalidInstanceID.NotFound" + rc.ec2_code = "InvalidInstanceAttributeValue.NotFound" return rc end