~ubuntu-branches/ubuntu/raring/cinder/raring-updates

« back to all changes in this revision

Viewing changes to cinder/api/middleware/auth.py

Tags: upstream-2013.1~g2
ImportĀ upstreamĀ versionĀ 2013.1~g2

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
from cinder import wsgi as base_wsgi
32
32
 
33
33
 
34
 
use_forwarded_for_opt = cfg.BoolOpt('use_forwarded_for',
35
 
        default=False,
36
 
        help='Treat X-Forwarded-For as the canonical remote address. '
37
 
             'Only enable this if you have a sanitizing proxy.')
 
34
use_forwarded_for_opt = cfg.BoolOpt(
 
35
    'use_forwarded_for',
 
36
    default=False,
 
37
    help='Treat X-Forwarded-For as the canonical remote address. '
 
38
         'Only enable this if you have a sanitizing proxy.')
38
39
 
39
40
FLAGS = flags.FLAGS
40
41
FLAGS.register_opt(use_forwarded_for_opt)