diff options
| author | Rick Harris <rick.harris@rackspace.com> | 2011-01-12 14:01:20 -0600 |
|---|---|---|
| committer | Rick Harris <rick.harris@rackspace.com> | 2011-01-12 14:01:20 -0600 |
| commit | eb146fd75183d80e50f8a67021dae565f4915b2e (patch) | |
| tree | 4224b5ba611c44c3d556d33ed2999fc33fa33b2b | |
| parent | 8074b9f7e50174f05aad9ec06186f48da7812d94 (diff) | |
| download | nova-eb146fd75183d80e50f8a67021dae565f4915b2e.tar.gz nova-eb146fd75183d80e50f8a67021dae565f4915b2e.tar.xz nova-eb146fd75183d80e50f8a67021dae565f4915b2e.zip | |
Fixing stub so tests pass
| -rw-r--r-- | nova/tests/api/openstack/fakes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/tests/api/openstack/fakes.py b/nova/tests/api/openstack/fakes.py index 8315e85d9..d142c46e9 100644 --- a/nova/tests/api/openstack/fakes.py +++ b/nova/tests/api/openstack/fakes.py @@ -118,12 +118,12 @@ def stub_out_compute_api_snapshot(stubs): stubs.Set(nova.compute.API, 'snapshot', snapshot) -def stub_out_glance(stubs, initial_fixtures=[]): +def stub_out_glance(stubs, initial_fixtures=None): class FakeGlanceClient: def __init__(self, initial_fixtures): - self.fixtures = initial_fixtures + self.fixtures = initial_fixtures or [] def fake_get_images(self): return [dict(id=f['id'], name=f['name']) |
