summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2011-08-18 15:41:20 -0700
committerVishvananda Ishaya <vishvananda@gmail.com>2011-08-18 15:41:20 -0700
commit509ce9d3016731c183bb565e8726a27010eaf02a (patch)
tree470fc091d333da79dfc30f859cbd0ed4788cce41
parent93207c19c72aff5eb2c99b0b42649a75def35cf0 (diff)
declare the use_forwarded_for flag
-rw-r--r--nova/api/ec2/__init__.py1
-rw-r--r--nova/api/ec2/metadatarequesthandler.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/nova/api/ec2/__init__.py b/nova/api/ec2/__init__.py
index 2ae370f88..52f381dbb 100644
--- a/nova/api/ec2/__init__.py
+++ b/nova/api/ec2/__init__.py
@@ -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):
diff --git a/nova/api/ec2/metadatarequesthandler.py b/nova/api/ec2/metadatarequesthandler.py
index 1dc275c90..0198bf490 100644
--- a/nova/api/ec2/metadatarequesthandler.py
+++ b/nova/api/ec2/metadatarequesthandler.py
@@ -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):