~rackspace-titan/nova/openstack-api-version-split

« back to all changes in this revision

Viewing changes to nova/api/openstack/common.py

  • Committer: Naveed Massjouni
  • Date: 2011-03-15 23:55:13 UTC
  • Revision ID: naveedm9@gmail.com-20110315235513-l7avazqipd6fa8l4
As suggested by Eric Day:
 * changed request.environ version key to more descriptive 'api.version'
 * removed python3 string formatting
 * added licenses to headers on new files

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        if abs(hash(image_id)) == int(image_hash):
75
75
            return image_id
76
76
    raise exception.NotFound(image_hash)
 
77
 
 
78
def get_api_version(req):
 
79
    return req.environ.get('api.version')