diff options
author | Mark McLoughlin <markmc@redhat.com> | 2012-10-15 02:03:34 +0100 |
---|---|---|
committer | Mark McLoughlin <markmc@redhat.com> | 2012-11-04 21:38:38 +0000 |
commit | 8ce58defbe560b1da34d991b38ac64a9b4c8d654 (patch) | |
tree | 57d794afbc9fdb8e63c37198c9d2a6dff402cbf6 /nova/flags.py | |
parent | efede80046e0504dc8a68ab5447f97b05c02dd7a (diff) | |
download | nova-8ce58defbe560b1da34d991b38ac64a9b4c8d654.tar.gz nova-8ce58defbe560b1da34d991b38ac64a9b4c8d654.tar.xz nova-8ce58defbe560b1da34d991b38ac64a9b4c8d654.zip |
Remove flags.DECLARE
The cfg.ConfigOpts class has an equivalent method, so lets use that.
Change-Id: I5860230336d00d7531a0ffd255c766ff77661625
Diffstat (limited to 'nova/flags.py')
-rw-r--r-- | nova/flags.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/nova/flags.py b/nova/flags.py index a27674472..e3a33de12 100644 --- a/nova/flags.py +++ b/nova/flags.py @@ -36,17 +36,6 @@ from nova.openstack.common import cfg FLAGS = cfg.CONF -class UnrecognizedFlag(Exception): - pass - - -def DECLARE(name, module_string, flag_values=FLAGS): - if module_string not in sys.modules: - __import__(module_string, globals(), locals()) - if name not in flag_values: - raise UnrecognizedFlag('%s not defined by %s' % (name, module_string)) - - def _get_my_ip(): """ Returns the actual ip of the local machine. |