From 5930e5f9acad1e42b3eb32f62b8cbc1d9b4c6384 Mon Sep 17 00:00:00 2001 From: ruichen Date: Thu, 2 Jan 2014 10:14:33 +0800 Subject: [PATCH] Remove unused code in nova/api/ec2/__init__.py "result = None" in nova/api/ec2/__init__.py#L546 is unused code, remove it Change-Id: I1b09d8656686bafcc7f42bc77d01f3e14aa51ed9 Closes-Bug: #1265408 --- nova/api/ec2/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/nova/api/ec2/__init__.py b/nova/api/ec2/__init__.py index 6e02596cff22..fcfd8bc09a66 100644 --- a/nova/api/ec2/__init__.py +++ b/nova/api/ec2/__init__.py @@ -543,7 +543,6 @@ class Executor(wsgi.Application): def __call__(self, req): context = req.environ['nova.context'] api_request = req.environ['ec2.request'] - result = None try: result = api_request.invoke(context) except exception.InstanceNotFound as ex: