From 65d9f80b5bfe9e94323f31f2d109670798774466 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Tue, 18 Dec 2012 09:55:46 -0500 Subject: Update exceptions to pass correct kwargs. Updates a variety of Nova exceptions so that they pass the correct kwargs for proper exception message formatting. Previously these exceptions would work but have incorrect error messages because of how NovaException handled exception formatting errors. Change-Id: I9601d3884a72d53a8ad742cf6610399968747cea --- nova/api/ec2/cloud.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nova/api') diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py index 2ee8fa157..156042833 100644 --- a/nova/api/ec2/cloud.py +++ b/nova/api/ec2/cloud.py @@ -80,11 +80,11 @@ QUOTAS = quota.QUOTAS def validate_ec2_id(val): if not validator.validate_str()(val): - raise exception.InvalidInstanceIDMalformed(val) + raise exception.InvalidInstanceIDMalformed(val=val) try: ec2utils.ec2_id_to_id(val) except exception.InvalidEc2Id: - raise exception.InvalidInstanceIDMalformed(val) + raise exception.InvalidInstanceIDMalformed(val=val) # EC2 API can return the following values as documented in the EC2 API -- cgit