Refactoring instance_type_get_all
This commit is contained in:
@@ -100,7 +100,7 @@ def stub_out_db_instance_api(stubs):
|
|||||||
return '10.10.10.10'
|
return '10.10.10.10'
|
||||||
|
|
||||||
def fake_instance_type_get_all(context, inactive=0):
|
def fake_instance_type_get_all(context, inactive=0):
|
||||||
return INSTANCE_TYPES
|
return INSTANCE_TYPES.values()
|
||||||
|
|
||||||
def fake_instance_type_get_by_name(context, name):
|
def fake_instance_type_get_by_name(context, name):
|
||||||
return INSTANCE_TYPES[name]
|
return INSTANCE_TYPES[name]
|
||||||
|
|||||||
Reference in New Issue
Block a user