From 53182ddb06328d7c29f651b405f677a023b4c608 Mon Sep 17 00:00:00 2001 From: Sushil Kumar Date: Fri, 14 Mar 2014 10:48:18 +0000 Subject: [PATCH] Removes volumes redefinition in fake nova_client Reasons: - The redefinition of nova_client.volumes was making it, nova_client.volumes.volumes, if we needed to call the volume APIs from nova_client. - nova_client.volumes is already defined when defining "class FakeClient". Changes: - Removes redefinition of nova_client.volumes. Change-Id: I5981d461e5a0fd000214c35d5d0be58d86d6d368 Closes-Bug: #1292457 --- trove/tests/fakes/nova.py | 1 - 1 file changed, 1 deletion(-) diff --git a/trove/tests/fakes/nova.py b/trove/tests/fakes/nova.py index 9f41d3c368..7938668c57 100644 --- a/trove/tests/fakes/nova.py +++ b/trove/tests/fakes/nova.py @@ -806,7 +806,6 @@ def get_client_data(context): if context not in CLIENT_DATA: nova_client = FakeClient(context) volume_client = FakeClient(context) - nova_client.volumes = volume_client volume_client.servers = nova_client CLIENT_DATA[context] = { 'nova': nova_client,