diff options
| author | Naveed Massjouni <naveedm9@gmail.com> | 2011-03-15 21:26:45 -0400 |
|---|---|---|
| committer | Naveed Massjouni <naveedm9@gmail.com> | 2011-03-15 21:26:45 -0400 |
| commit | 6911123fda88c9793a70ea4b03d0352c9c38f938 (patch) | |
| tree | 5f808ebd7607374ca3da85919cf54659cb7cb72d /nova | |
| parent | c42d79b58eccaebab14274adf09128d890e920f7 (diff) | |
| download | nova-6911123fda88c9793a70ea4b03d0352c9c38f938.tar.gz nova-6911123fda88c9793a70ea4b03d0352c9c38f938.tar.xz nova-6911123fda88c9793a70ea4b03d0352c9c38f938.zip | |
Adding newlines for pep8.
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/api/openstack/common.py | 1 | ||||
| -rw-r--r-- | nova/api/openstack/views/flavors.py | 1 | ||||
| -rw-r--r-- | nova/api/openstack/views/images.py | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/nova/api/openstack/common.py b/nova/api/openstack/common.py index d94969ff5..d6679de01 100644 --- a/nova/api/openstack/common.py +++ b/nova/api/openstack/common.py @@ -75,5 +75,6 @@ def get_image_id_from_image_hash(image_service, context, image_hash): return image_id raise exception.NotFound(image_hash) + def get_api_version(req): return req.environ.get('api.version') diff --git a/nova/api/openstack/views/flavors.py b/nova/api/openstack/views/flavors.py index aa3c2aeb2..dd2e75a7a 100644 --- a/nova/api/openstack/views/flavors.py +++ b/nova/api/openstack/views/flavors.py @@ -17,6 +17,7 @@ from nova.api.openstack import common + def get_view_builder(req): ''' A factory method that returns the correct builder based on the version of diff --git a/nova/api/openstack/views/images.py b/nova/api/openstack/views/images.py index 930b464b0..2369a8f9d 100644 --- a/nova/api/openstack/views/images.py +++ b/nova/api/openstack/views/images.py @@ -17,6 +17,7 @@ from nova.api.openstack import common + def get_view_builder(req): ''' A factory method that returns the correct builder based on the version of |
