summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/auth.py2
-rw-r--r--nova/api/ec2/__init__.py2
-rw-r--r--nova/api/openstack/compute/__init__.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/nova/api/auth.py b/nova/api/auth.py
index a1a375d7c..518647ae1 100644
--- a/nova/api/auth.py
+++ b/nova/api/auth.py
@@ -34,7 +34,7 @@ use_forwarded_for_opt = cfg.BoolOpt('use_forwarded_for',
'Only enable this if you have a sanitizing proxy.')
FLAGS = flags.FLAGS
-FLAGS.add_option(use_forwarded_for_opt)
+FLAGS.register_opt(use_forwarded_for_opt)
class InjectContext(wsgi.Middleware):
diff --git a/nova/api/ec2/__init__.py b/nova/api/ec2/__init__.py
index bcd7b239e..bbce2c0d4 100644
--- a/nova/api/ec2/__init__.py
+++ b/nova/api/ec2/__init__.py
@@ -59,7 +59,7 @@ ec2_opts = [
]
FLAGS = flags.FLAGS
-FLAGS.add_options(ec2_opts)
+FLAGS.register_opts(ec2_opts)
flags.DECLARE('use_forwarded_for', 'nova.api.auth')
diff --git a/nova/api/openstack/compute/__init__.py b/nova/api/openstack/compute/__init__.py
index 3884ffbad..e23fe7b87 100644
--- a/nova/api/openstack/compute/__init__.py
+++ b/nova/api/openstack/compute/__init__.py
@@ -44,7 +44,7 @@ allow_instance_snapshots_opt = \
help='Permit instance snapshot operations.')
FLAGS = flags.FLAGS
-FLAGS.add_option(allow_instance_snapshots_opt)
+FLAGS.register_opt(allow_instance_snapshots_opt)
class APIRouter(nova.api.openstack.APIRouter):