Skip to content

Commit

Permalink
Removes volumes redefinition in fake nova_client
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Sushil Kumar authored and openstack-gerrit committed Mar 14, 2014
1 parent a767623 commit 53182dd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion trove/tests/fakes/nova.py
Expand Up @@ -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,
Expand Down

0 comments on commit 53182dd

Please sign in to comment.