declare the use_forwarded_for flag

This commit is contained in:
Vishvananda Ishaya
2011-08-18 15:41:20 -07:00
parent 93207c19c7
commit 509ce9d301
2 changed files with 2 additions and 0 deletions

View File

@@ -47,6 +47,7 @@ flags.DEFINE_integer('lockout_window', 15,
flags.DEFINE_string('keystone_ec2_url',
'http://localhost:5000/v2.0/ec2tokens',
'URL to get token from ec2 request.')
flags.DECLARE('use_forwarded_for', 'nova.api.auth')
class RequestLogging(wsgi.Middleware):

View File

@@ -30,6 +30,7 @@ from nova.api.ec2 import cloud
LOG = logging.getLogger('nova.api.ec2.metadata')
FLAGS = flags.FLAGS
flags.DECLARE('use_forwarded_for', 'nova.api.auth')
class MetadataRequestHandler(wsgi.Application):