Delete undeclared variable in guest-agent API class

The commit c7d93e7ce7 (not linked to
a gerrit review) introduced a local variable "timeout", used in a
 method of the API class

The review I9ad1b441eca855a4304454014ae746ec51bef8f3 deleted the
declaration of this variable but did not remove where it was used
in the class.

This patch removes the unused variable.

Closes-Bug: #1332333
Change-Id: Ie7aa66ceeca4efe63d91d60bcedb760ec181d443
This commit is contained in:
Julien Vey 2014-06-09 14:15:16 +02:00 committed by Julien Vey
parent 0a6de4300e
commit 12c714b0b1
1 changed files with 2 additions and 5 deletions

View File

@ -59,11 +59,8 @@ class API(proxy.RpcProxy):
except Exception as e:
LOG.error(e)
raise exception.GuestError(original_message=str(e))
except Timeout as t:
if t is not timeout:
raise
else:
raise exception.GuestTimeout()
except Timeout:
raise exception.GuestTimeout()
def _cast(self, method_name, **kwargs):
LOG.debug("Casting %s" % method_name)